summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/genX_pipe_control.c
diff options
context:
space:
mode:
authorAnuj Phogat <anuj.phogat@gmail.com>2021-03-15 11:58:07 -0700
committerMarge Bot <eric+marge@anholt.net>2021-03-16 16:40:12 +0000
commitb505db3864b097fa3bbf2a35bd3184554eb449d7 (patch)
treef4c6fc41f9980f0892c0d06821ffd8abd004325a /src/mesa/drivers/dri/i965/genX_pipe_control.c
parente66e8a0109b67c19779ac3e3e2db01b739a47895 (diff)
intel: Simplify few version checks involving G4X
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9608>
Diffstat (limited to 'src/mesa/drivers/dri/i965/genX_pipe_control.c')
-rw-r--r--src/mesa/drivers/dri/i965/genX_pipe_control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/genX_pipe_control.c b/src/mesa/drivers/dri/i965/genX_pipe_control.c
index d0f244b7b88..33ce8418418 100644
--- a/src/mesa/drivers/dri/i965/genX_pipe_control.c
+++ b/src/mesa/drivers/dri/i965/genX_pipe_control.c
@@ -492,7 +492,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 GEN_GEN >= 5 || GEN_VERSIONx10 == 45
+ #if GEN_GEN >= 45
pc.IndirectStatePointersDisable =
flags & PIPE_CONTROL_INDIRECT_STATE_POINTERS_DISABLE;
#endif