mesa: add ctx->Const.MaxGeometryShaderInvocations
radeonsi wants to report a different value Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
This commit is contained in:
@@ -118,6 +118,7 @@ _mesa_glsl_parse_state::_mesa_glsl_parse_state(struct gl_context *_ctx,
|
||||
this->Const.MaxVertexOutputComponents = ctx->Const.Program[MESA_SHADER_VERTEX].MaxOutputComponents;
|
||||
this->Const.MaxGeometryInputComponents = ctx->Const.Program[MESA_SHADER_GEOMETRY].MaxInputComponents;
|
||||
this->Const.MaxGeometryOutputComponents = ctx->Const.Program[MESA_SHADER_GEOMETRY].MaxOutputComponents;
|
||||
this->Const.MaxGeometryShaderInvocations = ctx->Const.MaxGeometryShaderInvocations;
|
||||
this->Const.MaxFragmentInputComponents = ctx->Const.Program[MESA_SHADER_FRAGMENT].MaxInputComponents;
|
||||
this->Const.MaxGeometryTextureImageUnits = ctx->Const.Program[MESA_SHADER_GEOMETRY].MaxTextureImageUnits;
|
||||
this->Const.MaxGeometryOutputVertices = ctx->Const.MaxGeometryOutputVertices;
|
||||
@@ -1820,7 +1821,7 @@ set_shader_inout_layout(struct gl_shader *shader,
|
||||
&invocations, false)) {
|
||||
|
||||
YYLTYPE loc = state->in_qualifier->invocations->get_location();
|
||||
if (invocations > MAX_GEOMETRY_SHADER_INVOCATIONS) {
|
||||
if (invocations > state->Const.MaxGeometryShaderInvocations) {
|
||||
_mesa_glsl_error(&loc, state,
|
||||
"invocations (%d) exceeds "
|
||||
"GL_MAX_GEOMETRY_SHADER_INVOCATIONS",
|
||||
|
@@ -493,6 +493,7 @@ struct _mesa_glsl_parse_state {
|
||||
unsigned MaxVertexOutputComponents;
|
||||
unsigned MaxGeometryInputComponents;
|
||||
unsigned MaxGeometryOutputComponents;
|
||||
unsigned MaxGeometryShaderInvocations;
|
||||
unsigned MaxFragmentInputComponents;
|
||||
unsigned MaxGeometryTextureImageUnits;
|
||||
unsigned MaxGeometryOutputVertices;
|
||||
|
Reference in New Issue
Block a user