diff options
author | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2016-09-22 14:58:11 +0300 |
---|---|---|
committer | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2016-09-23 10:11:59 +0300 |
commit | bc24590f0c579a2528fd94eb8d40dd4ce12eba29 (patch) | |
tree | 0ec5dbc71ec3aa551586005282200b184251d51f /src/mesa/drivers/dri/i965/brw_sf.c | |
parent | e60928f4c4bd4484821d83f2b16a910ea9f5f9d9 (diff) | |
download | external_mesa3d-bc24590f0c579a2528fd94eb8d40dd4ce12eba29.tar.gz external_mesa3d-bc24590f0c579a2528fd94eb8d40dd4ce12eba29.tar.bz2 external_mesa3d-bc24590f0c579a2528fd94eb8d40dd4ce12eba29.zip |
intel/i965: make gen_device_info mutable
Make gen_device_info a mutable structure so we can update the fields that
can be refined by querying the kernel (like subslices and EU numbers).
This patch does not make any functional change, it just makes
gen_get_device_info() fill a structure rather than returning a const
pointer.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_sf.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_sf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_sf.c b/src/mesa/drivers/dri/i965/brw_sf.c index dd5b4cce55..6d8cd74bdf 100644 --- a/src/mesa/drivers/dri/i965/brw_sf.c +++ b/src/mesa/drivers/dri/i965/brw_sf.c @@ -59,7 +59,7 @@ static void compile_sf_prog( struct brw_context *brw, mem_ctx = ralloc_context(NULL); /* Begin the compilation: */ - brw_init_codegen(brw->screen->devinfo, &c.func, mem_ctx); + brw_init_codegen(&brw->screen->devinfo, &c.func, mem_ctx); c.key = *key; c.vue_map = brw->vue_map_geom_out; @@ -118,7 +118,7 @@ static void compile_sf_prog( struct brw_context *brw, if (unlikely(INTEL_DEBUG & DEBUG_SF)) { fprintf(stderr, "sf:\n"); - brw_disassemble(brw->screen->devinfo, + brw_disassemble(&brw->screen->devinfo, c.func.store, 0, program_size, stderr); fprintf(stderr, "\n"); } |