Mesa (master): iris: Do MEDIA_CURBE_LOAD when IRIS_DIRTY_CS is set, not constants

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 27 15:51:13 UTC 2019


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

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Wed Jun 26 17:14:58 2019 -0700

iris: Do MEDIA_CURBE_LOAD when IRIS_DIRTY_CS is set, not constants

We only use push the compute shader thread IDs, not any actual constant
buffer data.  So we should track the compute shader variant changing,
not constbuf changes.

---

 src/gallium/drivers/iris/iris_state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index 83b5d9c7e35..df7f2da9336 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -5515,7 +5515,7 @@ iris_upload_compute_state(struct iris_context *ice,
    memset(curbe_data_map, 0x5a, ALIGN(cs_prog_data->push.total.size, 64));
    iris_fill_cs_push_const_buffer(cs_prog_data, curbe_data_map);
 
-   if (dirty & IRIS_DIRTY_CONSTANTS_CS) {
+   if (dirty & IRIS_DIRTY_CS) {
       iris_emit_cmd(batch, GENX(MEDIA_CURBE_LOAD), curbe) {
          curbe.CURBETotalDataLength =
             ALIGN(cs_prog_data->push.total.size, 64);




More information about the mesa-commit mailing list