mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 00:49:04 +02:00
glsl: fix spirv sso validation
The api validation calls will segfault without this as it will try to fallback to string matching names which are NULL. This would be incorrect behaviour even if the names weren't NULL so here we correctly set the explicit location flag. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9483 Fixes:ffdb44d3a0("nir/linker: Add inputs/outputs to the program resource list") Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24529> (cherry picked from commita7850f8cf3)
This commit is contained in:
parent
a60992ccea
commit
58e1cd7c68
2 changed files with 2 additions and 1 deletions
|
|
@ -10044,7 +10044,7 @@
|
|||
"description": "glsl: fix spirv sso validation",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "ffdb44d3a0a2199487f17ff566c51280c9708c60",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -589,6 +589,7 @@ add_vars_with_modes(const struct gl_constants *consts,
|
|||
resource_name_updated(&sh_var->name);
|
||||
sh_var->type = var->type;
|
||||
sh_var->location = var->data.location - loc_bias;
|
||||
sh_var->explicit_location = var->data.explicit_location;
|
||||
sh_var->index = var->data.index;
|
||||
|
||||
if (!link_util_add_program_resource(prog, resource_set,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue