llvmpipe: denote NEW fs when images change.
authorDave Airlie <airlied@redhat.com>
Thu, 9 Apr 2020 03:27:09 +0000 (13:27 +1000)
committerMarge Bot <eric+marge@anholt.net>
Fri, 10 Jul 2020 22:04:27 +0000 (22:04 +0000)
The fragment shader needs to be regenerated here,
so flag the same as for sampler views.

This causes correct flushing:
KHR-GL46.shader_image_load_store.non-layered_binding

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5835>

src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/llvmpipe/lp_setup_context.h

index 5780337d5ae8ae9ac0477cd1ca5aca71c80e117a..a3e2a7ed7e4860d6fdd9f2aa60266acb619efd1c 100644 (file)
@@ -741,7 +741,7 @@ lp_setup_set_fs_images(struct lp_setup_context *setup,
    for (; i < ARRAY_SIZE(setup->images); i++) {
       util_copy_image_view(&setup->images[i].current, NULL);
    }
-   setup->dirty |= LP_SETUP_NEW_IMAGES;
+   setup->dirty |= LP_SETUP_NEW_FS;
 }
 
 void
index 2cd01941ca8b9a8cb6ebc8bdb1182d097758e419..fd9edbe19f077c3c7eadad6258fc6c9d45564958 100644 (file)
@@ -50,7 +50,6 @@
 #define LP_SETUP_NEW_SCISSOR     0x08
 #define LP_SETUP_NEW_VIEWPORTS   0x10
 #define LP_SETUP_NEW_SSBOS       0x20
-#define LP_SETUP_NEW_IMAGES      0x40
 
 struct lp_setup_variant;