From 7c4478f43bbb18f6c71cb85433139c1a0d2cb697 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 22 Jun 2021 17:00:41 +1000 Subject: [PATCH] i965: fix regression in pipe control on g45 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Part-of: --- 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