radv: Don't pass a TESS_EVAL shader when tesselation is not enabled.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 2 Jun 2018 12:25:45 +0000 (14:25 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 4 Jun 2018 11:46:24 +0000 (13:46 +0200)
commit2835b6baf446d0ff3b3df6eefc57b248a505af36
tree3acce26316cc84144a399be69c898ce18f6c4658
parente3e929f8c342b32dc8f5296adf8fb337866fa40a
radv: Don't pass a TESS_EVAL shader when tesselation is not enabled.

Otherwise on pre-GFX9, if the constant layout allows both TESS_EVAL and
GEOMETRY shaders, but the PIPELINE has only GEOMETRY, it would return the
GEOMETRY shader for the TESS_EVAL shader.

This would cause the flush_constants code to emit the GEOMETRY constants
to the TESS_EVAL registers and then conclude that it did not need to set
the GEOMETRY shader registers.

Fixes: dfff9fb6f8d "radv: Handle GFX9 merged shaders in radv_flush_constants()"
CC: 18.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Alex Smith <asmith@feralinteractive.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_pipeline.c