Mesa (master): llvmpipe: denote NEW fs when images change.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jul 10 22:23:55 UTC 2020


Module: Mesa
Branch: master
Commit: 7582f4a49cdb87b1657e44ba38104445bc28bd77
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7582f4a49cdb87b1657e44ba38104445bc28bd77

Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Apr  9 13:27:09 2020 +1000

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 <sroland at vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5835>

---

 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;
 



More information about the mesa-commit mailing list