glsl: call assign_attribute_or_color_locations() in NIR linker
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22846>
This commit is contained in:
committed by
Marge Bot
parent
f3c6718f73
commit
fa56e911b8
@@ -3523,16 +3523,6 @@ link_varyings(const struct gl_constants *consts, struct gl_shader_program *prog,
|
||||
}
|
||||
}
|
||||
|
||||
if (!assign_attribute_or_color_locations(mem_ctx, prog, consts,
|
||||
MESA_SHADER_VERTEX, true)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!assign_attribute_or_color_locations(mem_ctx, prog, consts,
|
||||
MESA_SHADER_FRAGMENT, true)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
prog->last_vert_prog = NULL;
|
||||
for (int i = MESA_SHADER_GEOMETRY; i >= MESA_SHADER_VERTEX; i--) {
|
||||
if (prog->_LinkedShaders[i] == NULL)
|
||||
|
||||
Reference in New Issue
Block a user