X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fcompiler%2Fglsl%2Flower_vertex_id.cpp;h=3b641caa01ee8c09ecf83b34213645c5efcd1c6a;hb=8294295dbdc053c92065844f2079aef8da05db9b;hp=6f46945026c366011a458bff8654a41a6c094625;hpb=6a049687841d87fc5bbd0fb0a192f03776f67630;p=mesa.git diff --git a/src/compiler/glsl/lower_vertex_id.cpp b/src/compiler/glsl/lower_vertex_id.cpp index 6f46945026c..3b641caa01e 100644 --- a/src/compiler/glsl/lower_vertex_id.cpp +++ b/src/compiler/glsl/lower_vertex_id.cpp @@ -37,6 +37,8 @@ #include "ir_builder.h" #include "linker.h" #include "program/prog_statevars.h" +#include "builtin_functions.h" +#include "main/mtypes.h" namespace { @@ -122,7 +124,7 @@ lower_vertex_id_visitor::visit(ir_dereference_variable *ir) } bool -lower_vertex_id(gl_shader *shader) +lower_vertex_id(gl_linked_shader *shader) { /* gl_VertexID only exists in the vertex shader. */ @@ -130,7 +132,7 @@ lower_vertex_id(gl_shader *shader) return false; ir_function_signature *const main_sig = - _mesa_get_main_function_signature(shader); + _mesa_get_main_function_signature(shader->symbols); if (main_sig == NULL) { assert(main_sig != NULL); return false;