projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab3bbe0
)
swr: properly report max number of SO components
author
Ilia Mirkin
<imirkin@alum.mit.edu>
Sun, 27 Nov 2016 05:45:17 +0000
(
00:45
-0500)
committer
Ilia Mirkin
<imirkin@alum.mit.edu>
Thu, 1 Dec 2016 01:35:56 +0000
(20:35 -0500)
The components count the number of individual values, not the number of
slots.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/swr_screen.cpp
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/swr/swr_screen.cpp
b/src/gallium/drivers/swr/swr_screen.cpp
index 501468001e88e4da604cb8a1d3fa0114f8dee412..75a9d0227a89280ffa8687e4a0cf4a099a9f57a1 100644
(file)
--- a/
src/gallium/drivers/swr/swr_screen.cpp
+++ b/
src/gallium/drivers/swr/swr_screen.cpp
@@
-166,7
+166,7
@@
swr_get_param(struct pipe_screen *screen, enum pipe_cap param)
return MAX_SO_STREAMS;
case PIPE_CAP_MAX_STREAM_OUTPUT_SEPARATE_COMPONENTS:
case PIPE_CAP_MAX_STREAM_OUTPUT_INTERLEAVED_COMPONENTS:
- return MAX_ATTRIBUTES;
+ return MAX_ATTRIBUTES
* 4
;
case PIPE_CAP_MAX_GEOMETRY_OUTPUT_VERTICES:
case PIPE_CAP_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS:
return 1024;