mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
tgsi/scan: don't set GS_INVOCATIONS for all shader stages
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
parent
9fb2fd0b43
commit
8b6814211a
1 changed files with 3 additions and 1 deletions
|
|
@ -851,7 +851,6 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
|
|||
info->file_max[i] = -1;
|
||||
for (i = 0; i < ARRAY_SIZE(info->const_file_max); i++)
|
||||
info->const_file_max[i] = -1;
|
||||
info->properties[TGSI_PROPERTY_GS_INVOCATIONS] = 1;
|
||||
for (i = 0; i < ARRAY_SIZE(info->sampler_targets); i++)
|
||||
info->sampler_targets[i] = TGSI_TEXTURE_UNKNOWN;
|
||||
|
||||
|
|
@ -872,6 +871,9 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
|
|||
info->processor = procType;
|
||||
info->num_tokens = tgsi_num_tokens(parse.Tokens);
|
||||
|
||||
if (procType == PIPE_SHADER_GEOMETRY)
|
||||
info->properties[TGSI_PROPERTY_GS_INVOCATIONS] = 1;
|
||||
|
||||
/**
|
||||
** Loop over incoming program tokens/instructions
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue