i965: Fix PBO cache coherency issue after _mesa_meta_pbo_GetTexSubImage().
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 31 Jan 2015 18:04:55 +0000 (20:04 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 13 May 2015 11:28:25 +0000 (14:28 +0300)
commitd247615e0d67a7c8eaeea3fece837229c8c9658c
tree74b092cd1a5a598dd6cfe9f47a8eb82e094d8138
parent58715b72396133350c1549381553121f936a198e
i965: Fix PBO cache coherency issue after _mesa_meta_pbo_GetTexSubImage().

This problem can easily be reproduced with a number of
ARB_shader_image_load_store piglit tests, which use a buffer object as
PBO for a pixel transfer operation and later on bind the same buffer
to the pipeline as shader image -- The problem is not exclusive to
images though, and is likely to affect other kinds of buffer objects
that can be bound to the 3D pipeline, including vertex, index,
uniform, atomic counter buffers, etc.

CC: 10.5 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/intel_pixel_read.c
src/mesa/drivers/dri/i965/intel_tex_image.c