diff options
author | Lionel Landwerlin <[email protected]> | 2016-09-23 00:41:23 +0300 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2016-09-23 10:12:06 +0300 |
commit | 94d0e7dc0848a5f70a550f2294e459eab51ace8f (patch) | |
tree | f68f3d9c195a32c881f500a87be7e72fb11a53c7 /src/mesa/drivers/dri/i965/brw_wm.c | |
parent | bc24590f0c579a2528fd94eb8d40dd4ce12eba29 (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/brw_wm.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c index ba8e4aded06..6ffe7c8b9cf 100644 --- a/src/mesa/drivers/dri/i965/brw_wm.c +++ b/src/mesa/drivers/dri/i965/brw_wm.c @@ -79,6 +79,7 @@ brw_codegen_wm_prog(struct brw_context *brw, struct brw_fragment_program *fp, struct brw_wm_prog_key *key) { + const struct gen_device_info *devinfo = &brw->screen->devinfo; struct gl_context *ctx = &brw->ctx; void *mem_ctx = ralloc_context(NULL); struct brw_wm_prog_data prog_data; @@ -97,7 +98,7 @@ brw_codegen_wm_prog(struct brw_context *brw, if (!prog) prog_data.base.use_alt_mode = true; - assign_fs_binding_table_offsets(&brw->screen->devinfo, prog, + assign_fs_binding_table_offsets(devinfo, prog, &fp->program.Base, key, &prog_data); /* Allocate the references to the uniforms that will end up in the @@ -172,7 +173,7 @@ brw_codegen_wm_prog(struct brw_context *brw, brw_alloc_stage_scratch(brw, &brw->wm.base, prog_data.base.total_scratch, - brw->max_wm_threads); + devinfo->max_wm_threads); if (unlikely(INTEL_DEBUG & DEBUG_WM)) fprintf(stderr, "\n"); |