virgl: define MAX_VERTEX_STREAMS based on availability of TF3
authorGert Wollny <gert.wollny@collabora.com>
Wed, 13 Mar 2019 17:50:52 +0000 (18:50 +0100)
committerGert Wollny <gw.fossdev@gmail.com>
Tue, 2 Apr 2019 11:28:09 +0000 (11:28 +0000)
commit1e5381f93458dbc4fd6011ff8ad89f71d575332e
tree98f6b5de3ab32e473fd73add1ada04a55f382342
parent33d9b9436c3c9026229f7cb33ad6f5f1c65e6900
virgl: define MAX_VERTEX_STREAMS based on availability of TF3

Since with gles hosts we lie about the GLSL feature level it is better
to set the number of streams based on actual hosts capabilities.

v2: Make use of feature check level to avoid regressions.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-By: Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
src/gallium/drivers/virgl/virgl_hw.h
src/gallium/drivers/virgl/virgl_screen.c