etnaviv: Report correct number of vertex buffers
authorMarek Vasut <marex@denx.de>
Tue, 31 Dec 2019 10:53:55 +0000 (11:53 +0100)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Tue, 31 Dec 2019 14:55:04 +0000 (14:55 +0000)
commita812cb57e51a9c86a8184e24272a2bcd11920c21
tree464850f81110d386f623a50fec64fc5329eec825
parent11e62a9734c631fa38f1e7b415f5b98f6a28589f
etnaviv: Report correct number of vertex buffers

The GCnano has only 4 vertex buffers instead of 16. This information
can be extracted from the GPU status registers and is already stored
in screen->specs.stream_count. Use PIPE_CAP_MAX_VERTEX_BUFFERS to
report this information and permit u_vbuf to reorganize the shaders
to fit.

This fixes the following dEQP on GCnano:
dEQP-GLES2.functional.shaders.conversions.vector_combine.float_float_float_float_to_vec4_vertex

This fixes all the other dEQP-GLES2.functional.shaders.conversions.*
which used to fail on GCnano.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3241>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3241>
src/gallium/drivers/etnaviv/etnaviv_screen.c