i965: Fix texture buffer rendering after a whole buffer replacement.
authorEric Anholt <eric@anholt.net>
Fri, 4 Oct 2013 23:13:00 +0000 (16:13 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 23 Oct 2013 22:31:44 +0000 (15:31 -0700)
commitc0a9436d191d24d9aea18fcca7a79674af3a782e
tree6c57ffc27cc32a81083d6f156aad42aed1757980
parent2901e2efcd28c1041b2afc145812c0ab7f75bf2a
i965: Fix texture buffer rendering after a whole buffer replacement.

If glBufferData(), glBufferSubData(0, obj->Size), or similar happens, we
get a new drm_intel_bo for the buffer object, and thus need to re-upload
texture buffer state so we point at the new data.

Fixes the new piglit GL_ARB_texture_buffer_object/data-sync

Cc: "9.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c