projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
634cfb9
)
draw,tgsi: Assume TGSI_PROPERTY_GS_INVOCATIONS default of 1.
author
Jose Fonseca
<jfonseca@vmware.com>
Tue, 23 Jun 2015 11:18:06 +0000
(12:18 +0100)
committer
Jose Fonseca
<jfonseca@vmware.com>
Tue, 23 Jun 2015 11:19:52 +0000
(12:19 +0100)
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
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/tgsi/tgsi_scan.c
b/src/gallium/auxiliary/tgsi/tgsi_scan.c
index 711413cdaf6ec50379cadf1e1c9cdf2f09e10ddb..7523baf4ce01018eb5b3b045e96fba3082c1bb54 100644
(file)
--- 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