gallium/tgsi_exec: Remove unused MaxGeometryShaderOutputs.

Just an indirection from the value you should be grepping for (the one
that controls the allocation of the output buffer).

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8283>
This commit is contained in:
Eric Anholt 2020-12-30 15:33:45 -08:00 committed by Marge Bot
parent d31c30007b
commit c0bcde8b45
2 changed files with 1 additions and 3 deletions

View file

@ -1258,7 +1258,6 @@ tgsi_exec_machine_create(enum pipe_shader_type shader_type)
memset(mach, 0, sizeof(*mach));
mach->ShaderType = shader_type;
mach->MaxGeometryShaderOutputs = TGSI_MAX_TOTAL_VERTICES;
if (shader_type != PIPE_SHADER_COMPUTE) {
mach->Inputs = align_malloc(sizeof(struct tgsi_exec_vector) * PIPE_MAX_SHADER_INPUTS, 16);
@ -2060,7 +2059,7 @@ emit_primitive(struct tgsi_exec_machine *mach,
prim_count = &mach->OutputPrimCount[stream_id];
if (mach->ExecMask) {
++(*prim_count);
debug_assert((*prim_count * mach->NumOutputs) < mach->MaxGeometryShaderOutputs);
debug_assert((*prim_count * mach->NumOutputs) < TGSI_MAX_TOTAL_VERTICES);
mach->Primitives[stream_id][*prim_count] = 0;
}
}

View file

@ -323,7 +323,6 @@ struct tgsi_exec_machine
/* Offsets in ->Outputs of the primitives' vertex output data */
unsigned *PrimitiveOffsets[TGSI_MAX_VERTEX_STREAMS];
unsigned NumOutputs;
unsigned MaxGeometryShaderOutputs;
unsigned MaxOutputVertices;
/* Offset in ->Outputs for the current vertex to be emitted. */
unsigned OutputVertexOffset;