Fixes wrong value reported for GL_MAX_VERTEX_STREAMS.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23301>
# new fails with gl45:
#
-# Various limits we cannot or do not support:
-KHR-GL45.limits.max_vertex_streams,Fail
-
# MESA: warning: sample averaging on fallback z24s8 blit when we shouldn't.
KHR-GL45.direct_state_access.renderbuffers_storage_multisample,Fail
# new fails with gl45:
#
-# Various limits we cannot or do not support:
-KHR-GL45.limits.max_vertex_streams,Fail
-
# MESA: warning: sample averaging on fallback z24s8 blit when we shouldn't.
KHR-GL45.direct_state_access.renderbuffers_storage_multisample,Fail
# Shader compilation error log: 0:6(1): error: invalid stream specified 1 is larger than MAX_VERTEX_STREAMS - 1
KHR-GL45.transform_feedback.draw_xfb_stream_instanced_test,Fail
-# Various limits we cannot or do not support:
-KHR-GL45.limits.max_vertex_streams,Fail
-
KHR-GL45.direct_state_access.renderbuffers_storage_multisample,Fail
KHR-GL45.gpu_shader_fp64.fp64.max_uniform_components,Fail
KHR-GL45.multi_bind.dispatch_bind_image_textures,Fail
return !is_a5xx(screen);
/* Stream output. */
+ case PIPE_CAP_MAX_VERTEX_STREAMS:
+ if (is_a6xx(screen)) /* has SO + GS */
+ return PIPE_MAX_SO_BUFFERS;
+ return 0;
case PIPE_CAP_MAX_STREAM_OUTPUT_BUFFERS:
if (is_ir3(screen))
return PIPE_MAX_SO_BUFFERS;