aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/gen7_te_state.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-09-08 23:48:53 -0700
committerKenneth Graunke <[email protected]>2016-10-05 19:21:09 -0700
commite512941537fbc25e97ecd778433e130769e2c6ec (patch)
tree1d905192375521945bd9d286e4ebb8d823fe6831 /src/mesa/drivers/dri/i965/gen7_te_state.c
parent82c97ac710e31bea1f954060950f8b9faf2fb4d6 (diff)
i965: Eliminate brw->tes.prog_data pointer.
Just say no to: - brw->tes.base.prog_data = &brw->tes.prog_data->base.base; We'll just use the brw_stage_prog_data pointer in brw_stage_state and downcast it to brw_tes_prog_data as needed. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen7_te_state.c')
-rw-r--r--src/mesa/drivers/dri/i965/gen7_te_state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_te_state.c b/src/mesa/drivers/dri/i965/gen7_te_state.c
index d525318f71c..e56fdcf4e89 100644
--- a/src/mesa/drivers/dri/i965/gen7_te_state.c
+++ b/src/mesa/drivers/dri/i965/gen7_te_state.c
@@ -32,7 +32,8 @@ upload_te_state(struct brw_context *brw)
/* BRW_NEW_TESS_PROGRAMS */
bool active = brw->tess_eval_program;
- const struct brw_tes_prog_data *tes_prog_data = brw->tes.prog_data;
+ const struct brw_tes_prog_data *tes_prog_data =
+ brw_tes_prog_data(brw->tes.base.prog_data);
if (active) {
BEGIN_BATCH(4);