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@alum.mit.edu> Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
This commit is contained in:
parent
ab3bbe06ed
commit
02b2efa5eb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue