mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 21:00:17 +01:00
intel/compiler/mesh: handle const data in task & mesh programs
Started showing up when nir_opt_large_constants call was moved in88756cee8d. Fixes dEQP-VK.mesh_shader.ext.smoke.monolithic.fullscreen_gradient* Suggested-by: Kenneth Graunke <kenneth@whitecape.org> Fixes:88756cee8d("intel/compiler: Run nir_opt_large_constants before scalarizing consts") Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20876> (cherry picked from commit536a2acfc2)
This commit is contained in:
parent
598e985d65
commit
ea4ecc3e72
2 changed files with 3 additions and 1 deletions
|
|
@ -202,7 +202,7 @@
|
|||
"description": "intel/compiler/mesh: handle const data in task & mesh programs",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "88756cee8da77a742fc031ac83f2e5a197023ef8"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -376,6 +376,7 @@ brw_compile_task(const struct brw_compiler *compiler,
|
|||
|
||||
g.generate_code(selected->cfg, selected->dispatch_width, selected->shader_stats,
|
||||
selected->performance_analysis.require(), params->stats);
|
||||
g.add_const_data(nir->constant_data, nir->constant_data_size);
|
||||
return g.get_assembly();
|
||||
}
|
||||
|
||||
|
|
@ -891,6 +892,7 @@ brw_compile_mesh(const struct brw_compiler *compiler,
|
|||
|
||||
g.generate_code(selected->cfg, selected->dispatch_width, selected->shader_stats,
|
||||
selected->performance_analysis.require(), params->stats);
|
||||
g.add_const_data(nir->constant_data, nir->constant_data_size);
|
||||
return g.get_assembly();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue