aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/gen8_ds_state.c
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2016-09-23 00:41:23 +0300
committerLionel Landwerlin <[email protected]>2016-09-23 10:12:06 +0300
commit94d0e7dc0848a5f70a550f2294e459eab51ace8f (patch)
treef68f3d9c195a32c881f500a87be7e72fb11a53c7 /src/mesa/drivers/dri/i965/gen8_ds_state.c
parentbc24590f0c579a2528fd94eb8d40dd4ce12eba29 (diff)
i965: get rid of duplicated values from gen_device_info
Now that we have gen_device_info mutable, we can update its values and drop all copies we had in brw_context. Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen8_ds_state.c')
-rw-r--r--src/mesa/drivers/dri/i965/gen8_ds_state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/gen8_ds_state.c b/src/mesa/drivers/dri/i965/gen8_ds_state.c
index 6f01abb76fe..f7dbcec0480 100644
--- a/src/mesa/drivers/dri/i965/gen8_ds_state.c
+++ b/src/mesa/drivers/dri/i965/gen8_ds_state.c
@@ -29,6 +29,7 @@
static void
gen8_upload_ds_state(struct brw_context *brw)
{
+ const struct gen_device_info *devinfo = &brw->screen->devinfo;
struct gl_context *ctx = &brw->ctx;
const struct brw_stage_state *stage_state = &brw->tes.base;
/* BRW_NEW_TESS_PROGRAMS */
@@ -64,7 +65,7 @@ gen8_upload_ds_state(struct brw_context *brw)
OUT_BATCH(GEN7_DS_ENABLE |
GEN7_DS_STATISTICS_ENABLE |
- (brw->max_ds_threads - 1) << HSW_DS_MAX_THREADS_SHIFT |
+ (devinfo->max_ds_threads - 1) << HSW_DS_MAX_THREADS_SHIFT |
(vue_prog_data->dispatch_mode == DISPATCH_MODE_SIMD8 ?
GEN7_DS_SIMD8_DISPATCH_ENABLE : 0) |
(tes_prog_data->domain == BRW_TESS_DOMAIN_TRI ?