intel/compiler: Fix passthrough TCS regressions from program rename
In commiteda3e4e055
, Eric added names to various programs. In that patch, he also renamed our passthrough TCS shader from "passthrough" to "passthrough TCS". The passthrough TCS directly supplies the VUE headers rather than doing the whole "patch parameters are in backwards order" reswizzling dance. We failed to detect this and started trying to supply vec4s starting at component 3, leading to a stack smash on an array of 7 sources, not to mention the values were being put in the wrong place. Easy fix: update the code for the new name. Fixes:eda3e4e055
("nir/builder: Add a name format arg to nir_builder_init_simple_shader().") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3777 Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7564>
This commit is contained in:
@@ -107,7 +107,7 @@ remap_patch_urb_offsets(nir_block *block, nir_builder *b,
|
||||
GLenum tes_primitive_mode)
|
||||
{
|
||||
const bool is_passthrough_tcs = b->shader->info.name &&
|
||||
strcmp(b->shader->info.name, "passthrough") == 0;
|
||||
strcmp(b->shader->info.name, "passthrough TCS") == 0;
|
||||
|
||||
nir_foreach_instr_safe(instr, block) {
|
||||
if (instr->type != nir_instr_type_intrinsic)
|
||||
|
Reference in New Issue
Block a user