mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
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:
parent
d31c30007b
commit
c0bcde8b45
2 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue