summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-07-31 17:15:18 -0400
committerMarek Olšák <[email protected]>2019-08-12 14:52:17 -0400
commit8b6814211aa288ac22867a277ace719772caacc7 (patch)
treed400f65f9248026d6548dae885db02887ee604e6 /src/gallium
parent9fb2fd0b433a47a6460668f3ecfae014cfacc5df (diff)
tgsi/scan: don't set GS_INVOCATIONS for all shader stages
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_scan.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c
index 3ed8d1a3ed3..e1247c3da26 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_scan.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c
@@ -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
*/