[Mesa-dev] [PATCH] [rfc] radv: choose 32-bit abgr export for f16 formats.

Dave Airlie airlied at gmail.com
Thu Dec 28 03:06:08 UTC 2017


From: Dave Airlie <airlied at redhat.com>

This fixes:
dEQP-VK.image.texel_view_compatible.graphic.basic.attachment_read.bc*r16g16b16a16_sfloat
dEQP-VK.image.extended_usage_bit.attachment_write.r16_sfloat

I've no idea if it's correct though.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/amd/vulkan/radv_pipeline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index 14ada20..fb67b17 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -370,7 +370,7 @@ static unsigned si_choose_spi_color_format(VkFormat vk_format,
 		else if (ntype == V_028C70_NUMBER_SINT)
 			alpha = blend = blend_alpha = normal = V_028714_SPI_SHADER_SINT16_ABGR;
 		else if (ntype == V_028C70_NUMBER_FLOAT)
-			alpha = blend = blend_alpha = normal = V_028714_SPI_SHADER_FP16_ABGR;
+			alpha = blend = blend_alpha = normal = V_028714_SPI_SHADER_32_ABGR;
 		else
 			assert(0);
 		break;
-- 
2.9.5



More information about the mesa-dev mailing list