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>
s.MOCS = info->mocs;
#endif
-#if GEN_GEN > 4 || GEN_VERSIONx10 == 45
+#if GEN_VERSIONx10 >= 45
if (info->x_offset_sa != 0 || info->y_offset_sa != 0) {
/* There are fairly strict rules about when the offsets can be used.
* These are mostly taken from the Sky Lake PRM documentation for
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
sf.SmoothPointEnable = false;
#endif
-#if GEN_VERSIONx10 == 45 || GEN_GEN >= 5
+#if GEN_VERSIONx10 >= 45
sf.AALineDistanceMode = AALINEDISTANCE_TRUE;
#endif