From: Dave Airlie Date: Thu, 9 Apr 2020 03:27:09 +0000 (+1000) Subject: llvmpipe: denote NEW fs when images change. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7582f4a49cdb87b1657e44ba38104445bc28bd77;p=mesa.git 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: --- 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;