Mesa (master): tu: Don't invalidate irrelevant state when changing pipeline

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jul 14 08:50:28 UTC 2020


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

Author: Connor Abbott <cwabbott0 at gmail.com>
Date:   Mon Jul 13 12:54:36 2020 +0200

tu: Don't invalidate irrelevant state when changing pipeline

At least in the future this could let us avoid re-emitting gfx/cs
constants when the other changes. This also matches what the blob does.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5877>

---

 src/freedreno/vulkan/tu_pipeline.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/src/freedreno/vulkan/tu_pipeline.c b/src/freedreno/vulkan/tu_pipeline.c
index 84cb9c465d9..b081d575e2d 100644
--- a/src/freedreno/vulkan/tu_pipeline.c
+++ b/src/freedreno/vulkan/tu_pipeline.c
@@ -469,14 +469,8 @@ tu6_emit_cs_config(struct tu_cs *cs, const struct tu_shader *shader,
                    uint32_t binary_iova)
 {
    tu_cs_emit_regs(cs, A6XX_HLSQ_INVALIDATE_CMD(
-         .vs_state = true,
-         .hs_state = true,
-         .ds_state = true,
-         .gs_state = true,
-         .fs_state = true,
          .cs_state = true,
-         .cs_ibo = true,
-         .gfx_ibo = true));
+         .cs_ibo = true));
 
    tu6_emit_xs_config(cs, MESA_SHADER_COMPUTE, v, binary_iova);
 
@@ -1368,8 +1362,6 @@ tu6_emit_program(struct tu_cs *cs,
          .ds_state = true,
          .gs_state = true,
          .fs_state = true,
-         .cs_state = true,
-         .cs_ibo = true,
          .gfx_ibo = true));
 
   /* Don't use the binning pass variant when GS is present because we don't



More information about the mesa-commit mailing list