radv: handle 10-bit format clamping workaround.
authorDave Airlie <airlied@redhat.com>
Thu, 27 Jul 2017 20:52:20 +0000 (21:52 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 31 Jul 2017 23:10:23 +0000 (00:10 +0100)
commitdf61a05019d5c7479d4b29d251af4231f125e61c
tree80d8e3ccb86c3f5627eef17fe0cb1472368b04ef
parentb7dd86a04ec415b7ef4f3bfc9a4708820519137f
radv: handle 10-bit format clamping workaround.

This fixes:
dEQP-VK.api.copy_and_blit.core.blit_image.all_formats.*
for a2r10g10b10 formats as destination on SI/CIK hardware.

This adds support to the meta program for emitting 10-bit
outputs, and adds 10-bit support to the fragment shader key.

It also only does the int8/10 on SI/CIK.

Fixes: f4e499ec7 (radv: add initial non-conformant radv vulkan driver)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c
src/amd/common/ac_nir_to_llvm.h
src/amd/vulkan/radv_meta_blit.c
src/amd/vulkan/radv_meta_blit2d.c
src/amd/vulkan/radv_meta_clear.c
src/amd/vulkan/radv_meta_resolve_fs.c
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_private.h