Mesa (main): i965: fix regression in pipe control on g45

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 22 07:49:25 UTC 2021


Module: Mesa
Branch: main
Commit: 7c4478f43bbb18f6c71cb85433139c1a0d2cb697
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7c4478f43bbb18f6c71cb85433139c1a0d2cb697

Author: Dave Airlie <airlied at redhat.com>
Date:   Tue Jun 22 17:00:41 2021 +1000

i965: fix regression in pipe control on g45

The cleanups got the wrong value here, just noticed in drive by.

Fixes: b505db3864b0 ("intel: Simplify few version checks involving G4X")
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11519>

---

 src/mesa/drivers/dri/i965/genX_pipe_control.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/genX_pipe_control.c b/src/mesa/drivers/dri/i965/genX_pipe_control.c
index 8bd4f92a161..880b7c7b347 100644
--- a/src/mesa/drivers/dri/i965/genX_pipe_control.c
+++ b/src/mesa/drivers/dri/i965/genX_pipe_control.c
@@ -495,7 +495,7 @@ genX(emit_raw_pipe_control)(struct brw_context *brw, uint32_t flags,
       pc.InstructionCacheInvalidateEnable =
          flags & PIPE_CONTROL_INSTRUCTION_INVALIDATE;
       pc.NotifyEnable = flags & PIPE_CONTROL_NOTIFY_ENABLE;
-   #if GFX_VER >= 45
+   #if GFX_VERx10 >= 45
       pc.IndirectStatePointersDisable =
          flags & PIPE_CONTROL_INDIRECT_STATE_POINTERS_DISABLE;
    #endif



More information about the mesa-commit mailing list