From 7582f4a49cdb87b1657e44ba38104445bc28bd77 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 9 Apr 2020 13:27:09 +1000 Subject: [PATCH] llvmpipe: denote NEW fs when images change. 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 Part-of: --- src/gallium/drivers/llvmpipe/lp_setup.c | 2 +- src/gallium/drivers/llvmpipe/lp_setup_context.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c index 5780337d5ae..a3e2a7ed7e4 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_setup.c @@ -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 diff --git a/src/gallium/drivers/llvmpipe/lp_setup_context.h b/src/gallium/drivers/llvmpipe/lp_setup_context.h index 2cd01941ca8..fd9edbe19f0 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup_context.h +++ b/src/gallium/drivers/llvmpipe/lp_setup_context.h @@ -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; -- 2.30.2