Mesa (master): draw,tgsi: Assume TGSI_PROPERTY_GS_INVOCATIONS default of 1.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Tue Jun 23 11:24:03 UTC 2015
Module: Mesa
Branch: master
Commit: be5f71d4a52c9ef72f63bb6c339fe0110f2027af
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=be5f71d4a52c9ef72f63bb6c339fe0110f2027af
Author: Jose Fonseca <jfonseca at vmware.com>
Date: Tue Jun 23 12:18:06 2015 +0100
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.
---
src/gallium/auxiliary/tgsi/tgsi_scan.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c
index 711413c..7523baf 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
More information about the mesa-commit
mailing list