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
@@ -25,6 +25,7 @@
|
||||
#include "nir_builder.h"
|
||||
#include "gl_nir.h"
|
||||
#include "gl_nir_linker.h"
|
||||
#include "gl_nir_link_varyings.h"
|
||||
#include "linker_util.h"
|
||||
#include "main/shader_types.h"
|
||||
#include "main/consts_exts.h"
|
||||
@@ -1246,6 +1247,9 @@ gl_nir_link_glsl(const struct gl_constants *consts,
|
||||
linked_shader[num_shaders++] = prog->_LinkedShaders[i];
|
||||
}
|
||||
|
||||
if (!gl_assign_attribute_or_color_locations(consts, prog))
|
||||
return false;
|
||||
|
||||
if (!prelink_lowering(consts, exts, prog, linked_shader, num_shaders))
|
||||
return false;
|
||||
|
||||
|
Reference in New Issue
Block a user