summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965/brw_defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/i965/brw_defines.h')
-rw-r--r--src/gallium/drivers/i965/brw_defines.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/i965/brw_defines.h b/src/gallium/drivers/i965/brw_defines.h
index e201ce4d7ce..feb1b48fafe 100644
--- a/src/gallium/drivers/i965/brw_defines.h
+++ b/src/gallium/drivers/i965/brw_defines.h
@@ -839,8 +839,8 @@
#define R02_PRIM_END 0x1
#define R02_PRIM_START 0x2
-#define URB_SIZES(brw) (BRW_IS_IGDNG(brw) ? 1024 : \
- (BRW_IS_G4X(brw) ? 384 : 256)) /* 512 bit units */
+#define URB_SIZES(brw) (brw->gen == 5 ? 1024 : \
+ (brw->is_g4x ? 384 : 256)) /* 512 bit units */