Mesa (master): swr: properly report max number of SO components
Ilia Mirkin
imirkin at kemper.freedesktop.org
Thu Dec 1 01:39:53 UTC 2016
Module: Mesa
Branch: master
Commit: 02b2efa5eb87416b48d530ceeaada039ca785539
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=02b2efa5eb87416b48d530ceeaada039ca785539
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Sun Nov 27 00:45:17 2016 -0500
swr: properly report max number of SO components
The components count the number of individual values, not the number of
slots.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley at intel.com>
---
src/gallium/drivers/swr/swr_screen.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp
index 5014680..75a9d02 100644
--- 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;
More information about the mesa-commit
mailing list