diff options
author | Jose Fonseca <[email protected]> | 2015-06-23 12:18:06 +0100 |
---|---|---|
committer | Jose Fonseca <[email protected]> | 2015-06-23 12:19:52 +0100 |
commit | be5f71d4a52c9ef72f63bb6c339fe0110f2027af (patch) | |
tree | a05819eb92806bf9b678f8c957d2a9a88727549c | |
parent | 634cfb9a458bcc1051b60ab13bd12e17bba0f71b (diff) |
draw,tgsi: Assume TGSI_PROPERTY_GS_INVOCATIONS default of 1.
If the shader doesn't specify number of invocations, assume one.
This fixes geometry shaders on state trackers other than Mesa (and
probably graw tests too.)
Trivial.
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_scan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c index 711413cdaf6..7523baf4ce0 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.c +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c @@ -62,6 +62,7 @@ tgsi_scan_shader(const struct tgsi_token *tokens, info->file_max[i] = -1; for (i = 0; i < Elements(info->const_file_max); i++) info->const_file_max[i] = -1; + info->properties[TGSI_PROPERTY_GS_INVOCATIONS] = 1; /** ** Setup to begin parsing input shader |