virgl: add ARB_tessellation_shader support. (v2)

Graphics / Mesa 3D Graphics Library / Mesa - Dave Airlie [redhat.com] - 14 June 2018 00:36 EDT

This should add all the pieces to enable tess shaders on virgl.

v2: fixup transform to handle tess and strip out precise. set default for max patch varyings to work around issue when tess gets enabled from v1 caps but v2 caps aren't in place. (Elie)

7b6f2704eb virgl: add ARB_tessellation_shader support. (v2)
src/gallium/auxiliary/tgsi/tgsi_transform.c | 4 --
src/gallium/drivers/virgl/virgl_context.c | 69 +++++++++++++++++++++++++++++
src/gallium/drivers/virgl/virgl_encode.c | 21 ++++++++-
src/gallium/drivers/virgl/virgl_encode.h | 4 ++
src/gallium/drivers/virgl/virgl_protocol.h | 5 +++
src/gallium/drivers/virgl/virgl_screen.c | 10 ++++-
src/gallium/drivers/virgl/virgl_winsys.h | 2 +-
7 files changed, 107 insertions(+), 8 deletions(-)

Upstream: cgit.freedesktop.org


  • Share