OSDN Git Service

i965: Drop assertion about buffer offset at draw time.
authorEric Anholt <eric@anholt.net>
Mon, 15 Aug 2016 15:58:27 +0000 (08:58 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 17 Sep 2016 16:48:16 +0000 (17:48 +0100)
commit073129c7afb955ff33a94ccb358883a7051c624a
tree3e52ee7f9d9412e2e302ee4d706837286fde5d3a
parentddd6116e32dd27ebdf4291c2a22922e8f38e7788
i965: Drop assertion about buffer offset at draw time.

Given robust access, we should just be returning zeroes if the user gives
us a base pointer that's too big, which is what was happens on a release
build.  This was caught by a webgl conformance test for out-of-bounds
draws on servo.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_draw_upload.c