diff options
author | Ilia Mirkin <[email protected]> | 2016-11-27 00:45:17 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-11-30 20:35:56 -0500 |
commit | 02b2efa5eb87416b48d530ceeaada039ca785539 (patch) | |
tree | 1cfe9b3047ce5e651945a36efb81b966f28b4f3c /src/gallium/drivers/swr | |
parent | ab3bbe06edbf459b24cb6908393679d29adf3a2c (diff) |
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 <[email protected]>
Reviewed-by: Tim Rowley <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr')
-rw-r--r-- | src/gallium/drivers/swr/swr_screen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp index 501468001e8..75a9d0227a8 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; |