radv: compute CB_SHADER_MASK from the fragment shader outputs
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 11 Jun 2020 14:27:17 +0000 (16:27 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 18 Jun 2020 09:16:04 +0000 (09:16 +0000)
commit70cc80805ce5b027bece7334349ae8b028bf2862
treeec8dd8ccc7c6d0297480b90aa2bd18cec6da325f
parentb848d88059b17b221e5fa12afe9876862f18623b
radv: compute CB_SHADER_MASK from the fragment shader outputs

The fragment shader doesn't necessarily output the number of components
expected by the target format.

Fixes new dEQP-VK.draw.output_location.*.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5427>
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_shader.h
src/amd/vulkan/radv_shader_info.c