r600: add gs tri strip adjacency fix

Graphics / Mesa 3D Graphics Library / Mesa - Dave Airlie [redhat.com] - 13 November 2017 20:16 EST

Like radeonsi: generate GS prolog to (partially) fix triangle strip adjacency rotation

evergreen hw suffers from the same problem, so rotate the geometry inputs to fix this.

This fixes: ./bin/glsl-1.50-geometry-primitive-types GL_TRIANGLE_STRIP_ADJACENCY on evergreen.

53d5dda6f8 r600: add gs tri strip adjacency fix.
src/gallium/drivers/r600/r600_pipe.h | 1 +
src/gallium/drivers/r600/r600_shader.c | 48 +++++++++++++++++++++++++---
src/gallium/drivers/r600/r600_shader.h | 3 +-
src/gallium/drivers/r600/r600_state_common.c | 15 +++++++++
4 files changed, 62 insertions(+), 5 deletions(-)

Upstream: cgit.freedesktop.org


  • Share