[Mesa-dev] [Bug 40361] Glitches on X3100 after upgrade to 7.11

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jan 22 17:01:45 PST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=40361

--- Comment #6 from Jaroslav Šmíd <jardasmid at gmail.com> 2012-01-22 17:01:45 PST ---
I hope I am not spamming too much :D
Now looking at that code ...

if (end >= ctx->Array.ArrayObj->_MaxElement) {

Maybe there shouldn't be greater or equal, but only greater? Just asking, since
start+count is end so end should actually be invalid?. And when I checked
_mesa_validate_DrawRangeElements which then called check_index_bounds (in
mesa/main/api_validate.c), there I can see code

if ((int)(min + basevertex) < 0 || max + basevertex >
ctx->Array.ArrayObj->_MaxElement)

see, only "greater than" condition.



When I set MESA_DEBUG, the game prints these:

Mesa warning: glDraw[Range]Elements(start 0, end 20496, count 20496, type
0x1403, indices=(nil))
    end is out of bounds (max=3448)  Element Buffer 392 (size 40992)
    This should probably be fixed in the application.
Mesa warning: glDraw[Range]Elements(start 20586, end 21384, count 798, type
0x1403, indices=0xa0d4)
    end is out of bounds (max=13316)  Element Buffer 396 (size 54072)
    This should probably be fixed in the application.
Mesa warning: glDraw[Range]Elements(start 21546, end 21696, count 150, type
0x1403, indices=0xa854)
    end is out of bounds (max=13316)  Element Buffer 396 (size 54072)
    This should probably be fixed in the application.
Mesa warning: glDraw[Range]Elements(start 40146, end 40602, count 456, type
0x1403, indices=0x139a4)
    end is out of bounds (max=22005)  Element Buffer 390 (size 81204)
    This should probably be fixed in the application.
Mesa warning: glDraw[Range]Elements(start 26034, end 26946, count 912, type
0x1403, indices=0xcb64)
    end is out of bounds (max=13316)  Element Buffer 396 (size 54072)
    This should probably be fixed in the application.
Mesa warning: glDraw[Range]Elements(start 27018, end 27036, count 18, type
0x1403, indices=0xd314)
    end is out of bounds (max=13316)  Element Buffer 396 (size 54072)
    This should probably be fixed in the application.
Mesa warning: glDraw[Range]Elements(start 35577, end 39177, count 3600, type
0x1403, indices=0x115f2)
    end is out of bounds (max=22005)  Element Buffer 390 (size 81204)
    This should probably be fixed in the application.
Mesa warning: glDraw[Range]Elements(start 19434, end 20586, count 1152, type
0x1403, indices=0x97d4)
    end is out of bounds (max=13316)  Element Buffer 396 (size 54072)
    This should probably be fixed in the application.
Mesa warning: glDraw[Range]Elements(start 39177, end 39960, count 783, type
0x1403, indices=0x13212)
    end is out of bounds (max=22005)  Element Buffer 390 (size 81204)
    This should probably be fixed in the application.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list