virgl: also mark sampler views as dirty
authorGurchetan Singh <gurchetansingh@chromium.org>
Tue, 10 Jul 2018 23:19:24 +0000 (16:19 -0700)
committerDave Airlie <airlied@redhat.com>
Tue, 31 Jul 2018 22:05:39 +0000 (08:05 +1000)
commit9c136e8a07b10ce0c034cbeab1180ae2b4d89bf7
tree36150b0b104bdc27ac9e74b18c0f40db78152c04
parenta090df0d5dc804c1b6e16442a49b2ecb612a990d
virgl: also mark sampler views as dirty

When texture buffers are used as images in compute shaders, the guest
never sees the modified data since the TBO is always marked as clean.

Fixes most dEQP-GLES31.functional.image_load_store.buffer.* tests.

Example test cases:
   dEQP-GLES31.functional.image_load_store.buffer.load_store.r32ui
   dEQP-GLES31.functional.image_load_store.buffer.qualifiers.coherent_r32f
   dEQP-GLES31.functional.image_load_store.buffer.format_reinterpret.rgba8_rgba8ui

Note: virglrenderer side patch also needed to bind TBOs correctly

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/virgl/virgl_buffer.c