OSDN Git Service

radv/gfx10: Fix NGG GS output mask handlings for LDS indexing.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 11 Jul 2019 06:44:19 +0000 (08:44 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 11 Jul 2019 13:45:59 +0000 (15:45 +0200)
commit0a8ef756d3a94ce6c4738a77f22cda945e6e23af
tree403e09fdfb7a0b8341e6955ddd03910f0d098e07
parentf5982917ff3d2dced160812a8ff53e52723f66a2
radv/gfx10: Fix NGG GS output mask handlings for LDS indexing.

In emit_vertex we optimize storage if the output mask does not
have all bits set. Do the same in the epilogue so the indices
actually match up.

Fixes dEQP-VK.geometry.input.basic_primitive.points because it
outputs PSIZE with an output mask of 1, which cause the generic
attribute for the color to be loaded from the wrong indices.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_nir_to_llvm.c