CVS log for ports/games/fteqw/patches/Attic/patch-engine_gl_gl_backend_c

[BACK] Up to [local] / ports / games / fteqw / patches

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.2, Tue Aug 6 08:32:08 2019 UTC (5 years, 3 months ago) by namtsui
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED

Summary: upstream patch

Revision 1.1 / (download) - annotate - [select for diffs], Tue Aug 6 07:03:57 2019 UTC (5 years, 3 months ago) by namtsui
Branch: MAIN

Summary: off by 1 error

https://sourceforge.net/p/fteqw/tickets/61/

22:51 <Spoike> I believe that it may be caused by an off-by-one
               with the qglDrawRangeElements calls.
22:53 <Spoike> try subtracting 1 from the third arg of each call to
               it inside engine/gl/gl_backend.c

$ egdb fteqw-gl fteqw-gl.core
GNU gdb (GDB) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-openbsd6.5".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from fteqw-gl...done.
[New process 119379]
[New process 417346]
[New process 324852]
bCore was generated by `fteqw-gl'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00000d0496e030e0 in memcpy (dst0=<optimized out>, src0=<optimized out>,
    length=<optimized out>) at /usr/src/lib/libc/string/memcpy.c:97
97                      TLOOP1(*dst++ = *src++);
[Current thread is 1 (process 119379)]
(gdb) bt
#0  0x00000d0496e030e0 in memcpy (dst0=<optimized out>, src0=<optimized out>,
    length=<optimized out>) at /usr/src/lib/libc/string/memcpy.c:97
#1  0x00000d04eb07235d in u_upload_data () from /usr/X11R6/lib/modules/dri/r600_dri.so
#2  0x00000d04eb07455e in u_vbuf_draw_vbo ()
   from /usr/X11R6/lib/modules/dri/r600_dri.so
#3  0x00000d04ead6d4dc in st_draw_vbo () from /usr/X11R6/lib/modules/dri/r600_dri.so
#4  0x00000d04eab35dbe in _mesa_validated_drawrangeelements ()
   from /usr/X11R6/lib/modules/dri/r600_dri.so
#5  0x00000d04eab35c2a in _mesa_DrawRangeElementsBaseVertex ()
   from /usr/X11R6/lib/modules/dri/r600_dri.so
#6  0x00000d04eab35e0e in _mesa_DrawRangeElements ()
   from /usr/X11R6/lib/modules/dri/r600_dri.so
#7  0x00000d02612fd473 in BE_SubmitMeshChain (usetesselation=false)
    at gl/gl_backend.c:3108
#8  0x00000d02612fcc00 in BE_RenderMeshProgram (shader=0xd0547624000,
    pass=0xd05476242d8, p=0xd05589fd780) at gl/gl_backend.c:3961
#9  0x00000d02612f83f3 in DrawMeshes () at gl/gl_backend.c:4719
#10 0x00000d02612f8bc5 in GLBE_SubmitBatch (batch=0xd05170811b0)
    at gl/gl_backend.c:5162
#11 0x00000d02612f9238 in GLBE_SubmitMeshesSortList (sortlist=0xd0517081480)
    at gl/gl_backend.c:5495
#12 0x00000d02612f8cb5 in GLBE_SubmitMeshes (worldbatches=0xd05617c9510, start=3,
    stop=8) at gl/gl_backend.c:5518
#13 0x00000d02612fae47 in GLBE_DrawWorld (worldbatches=0xd05617c9510)
    at gl/gl_backend.c:6328
#14 0x00000d02612db80f in Surf_DrawWorld () at client/r_surf.c:3492
#15 0x00000d026130a885 in R_RenderScene () at gl/gl_rmain.c:773
#16 0x00000d026130f5c0 in GLR_RenderView () at gl/gl_rmain.c:2125
#17 0x00000d02615b78bc in PF_R_RenderScene (prinst=0xd054ba9a000,
    pr_globals=0xd0568489750) at client/pr_csqc.c:2438
---Type <return> to continue, or q <return> to quit---
#18 0x00000d0261785c02 in PR_ExecuteCode16 (progfuncs=0xd054ba9a000, s=10187,
    runaway=0x7f7ffffd3d98) at qclib/execloop.h:688
#19 0x00000d026177796c in PR_ExecuteCode (progfuncs=0xd054ba9a000, s=10187)
    at qclib/pr_exec.c:1774
#20 0x00000d026177755b in PR_ExecuteProgram (ppf=0xd054ba9a000, fnum=762)
    at qclib/pr_exec.c:1866
#21 0x00000d02615b0309 in CSQC_DrawView () at client/pr_csqc.c:8185
#22 0x00000d0261312b7d in GLSCR_UpdateScreen () at gl/gl_screen.c:183
#23 0x00000d0261549577 in Host_Frame (time=0.0015059999999778029)
    at client/cl_main.c:6088
#24 0x00000d0261384205 in main (c=1, v=0x7f7ffffd4578) at client/sys_linux.c:1052

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb