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>
This commit is contained in:

committed by
Marge Bot

parent
9bb18a4f9e
commit
536a2acfc2
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user