aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-04-16 17:50:43 -0700
committerJason Ekstrand <[email protected]>2015-04-22 16:00:33 -0700
commit85db2aca52acd7f05e1d8cb3300c64f0307e39a9 (patch)
treefbb8983ff7202664f1f975c2af0c524001c89858 /src/mesa/drivers/dri/i965
parent9c89e47806ee0437a2617eb4b90a0b953869fea2 (diff)
i965/device_info: Add a HSW_FEATURES macro
It's basically just a copy of GEN7_FEATURES only with is_haswell set Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r--src/mesa/drivers/dri/i965/brw_device_info.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_device_info.c b/src/mesa/drivers/dri/i965/brw_device_info.c
index c4350b4efcc..bdbe78fcc54 100644
--- a/src/mesa/drivers/dri/i965/brw_device_info.c
+++ b/src/mesa/drivers/dri/i965/brw_device_info.c
@@ -164,8 +164,12 @@ static const struct brw_device_info brw_device_info_byt = {
},
};
+#define HSW_FEATURES \
+ GEN7_FEATURES, \
+ .is_haswell = true
+
static const struct brw_device_info brw_device_info_hsw_gt1 = {
- GEN7_FEATURES, .is_haswell = true, .gt = 1,
+ HSW_FEATURES, .gt = 1,
.max_vs_threads = 70,
.max_hs_threads = 70,
.max_ds_threads = 70,
@@ -182,7 +186,7 @@ static const struct brw_device_info brw_device_info_hsw_gt1 = {
};
static const struct brw_device_info brw_device_info_hsw_gt2 = {
- GEN7_FEATURES, .is_haswell = true, .gt = 2,
+ HSW_FEATURES, .gt = 2,
.max_vs_threads = 280,
.max_hs_threads = 256,
.max_ds_threads = 280,
@@ -199,7 +203,7 @@ static const struct brw_device_info brw_device_info_hsw_gt2 = {
};
static const struct brw_device_info brw_device_info_hsw_gt3 = {
- GEN7_FEATURES, .is_haswell = true, .gt = 3,
+ HSW_FEATURES, .gt = 3,
.max_vs_threads = 280,
.max_hs_threads = 256,
.max_ds_threads = 280,