i965: fix regression in pipe control on g45
authorDave Airlie <airlied@redhat.com>
Tue, 22 Jun 2021 07:00:41 +0000 (17:00 +1000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 22 Jun 2021 07:40:30 +0000 (07:40 +0000)
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@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11519>

src/mesa/drivers/dri/i965/genX_pipe_control.c

index 8bd4f92..880b7c7 100644 (file)
@@ -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