etnaviv: Report correct number of vertex buffers

Graphics / Mesa 3D Graphics Library / Mesa - Marek Vasut [] - 31 December 2019 14:55 EST

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.

a812cb57e51 etnaviv: Report correct number of vertex buffers
src/gallium/drivers/etnaviv/etnaviv_screen.c | 2 ++
1 file changed, 2 insertions(+)


  • Share