Module: Mesa Branch: main Commit: 1e508777b453704fd6bc940345eba1ab0918a3d5 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e508777b453704fd6bc940345eba1ab0918a3d5
Author: Rhys Perry <[email protected]> Date: Fri Jun 11 10:51:52 2021 +0100 radv: allow VK_FORMAT_R8G8_SRGB sampling No reason why we can't do this. AMDVLK also allows this. Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11317> --- src/amd/vulkan/radv_formats.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c index 16cc6a06b7f..ce2d81df10f 100644 --- a/src/amd/vulkan/radv_formats.c +++ b/src/amd/vulkan/radv_formats.c @@ -180,11 +180,6 @@ radv_translate_tex_dataformat(VkFormat format, const struct util_format_descript case UTIL_FORMAT_COLORSPACE_YUV: goto out_unknown; /* TODO */ - case UTIL_FORMAT_COLORSPACE_SRGB: - if (desc->nr_channels != 4 && desc->nr_channels != 1) - goto out_unknown; - break; - default: break; } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
