diff options
author | Kenneth Graunke <[email protected]> | 2016-09-08 23:48:53 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-10-05 19:21:09 -0700 |
commit | e512941537fbc25e97ecd778433e130769e2c6ec (patch) | |
tree | 1d905192375521945bd9d286e4ebb8d823fe6831 /src/mesa/drivers/dri/i965/brw_tes.c | |
parent | 82c97ac710e31bea1f954060950f8b9faf2fb4d6 (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/brw_tes.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_tes.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_tes.c b/src/mesa/drivers/dri/i965/brw_tes.c index ad0eb2e070f..2c43a3e058f 100644 --- a/src/mesa/drivers/dri/i965/brw_tes.c +++ b/src/mesa/drivers/dri/i965/brw_tes.c @@ -223,7 +223,7 @@ brw_codegen_tes_prog(struct brw_context *brw, key, sizeof(*key), program, program_size, &prog_data, sizeof(prog_data), - &stage_state->prog_offset, &brw->tes.prog_data); + &stage_state->prog_offset, &brw->tes.base.prog_data); ralloc_free(mem_ctx); return true; @@ -285,13 +285,13 @@ brw_upload_tes_prog(struct brw_context *brw) if (!brw_search_cache(&brw->cache, BRW_CACHE_TES_PROG, &key, sizeof(key), - &stage_state->prog_offset, &brw->tes.prog_data)) { + &stage_state->prog_offset, + &brw->tes.base.prog_data)) { bool success = brw_codegen_tes_prog(brw, current[MESA_SHADER_TESS_EVAL], tep, &key); assert(success); (void)success; } - brw->tes.base.prog_data = &brw->tes.prog_data->base.base; } @@ -303,7 +303,7 @@ brw_tes_precompile(struct gl_context *ctx, struct brw_context *brw = brw_context(ctx); struct brw_tes_prog_key key; uint32_t old_prog_offset = brw->tes.base.prog_offset; - struct brw_tes_prog_data *old_prog_data = brw->tes.prog_data; + struct brw_stage_prog_data *old_prog_data = brw->tes.base.prog_data; bool success; struct gl_tess_eval_program *tep = (struct gl_tess_eval_program *)prog; @@ -331,7 +331,7 @@ brw_tes_precompile(struct gl_context *ctx, success = brw_codegen_tes_prog(brw, shader_prog, btep, &key); brw->tes.base.prog_offset = old_prog_offset; - brw->tes.prog_data = old_prog_data; + brw->tes.base.prog_data = old_prog_data; return success; } |