radeonsi: kill disabled clip distances and planes at per-channel granularity

Graphics / Mesa 3D Graphics Library / Mesa - Marek Olšák [amd.com] - 1 October 2020 16:29 UTC

Apps often enable only 1 plane for gl_ClipVertex, which means 1 scalar clip distance.

f5912c6d326 radeonsi: kill disabled clip distances and planes at per-channel granularity
src/gallium/drivers/radeonsi/si_shader.c | 2 +-
src/gallium/drivers/radeonsi/si_shader.h | 2 +-
src/gallium/drivers/radeonsi/si_shader_llvm_vs.c | 30 ++++++++++++++++--------
src/gallium/drivers/radeonsi/si_state.c | 13 +++-------
src/gallium/drivers/radeonsi/si_state_shaders.c | 10 ++++----
5 files changed, 29 insertions(+), 28 deletions(-)

Upstream: cgit.freedesktop.org


  • Share