OSDN Git Service
(root)
/
android-x86
/
external-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
5014680
..
75a9d02
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;