[Mesa-dev] [PATCH] radv: do not support blitting surfaces for R32G32B32 formats

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Fri Oct 12 12:28:58 UTC 2018


Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
On Fri, Oct 12, 2018 at 2:03 PM Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108113
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/amd/vulkan/radv_formats.c | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c
> index a7aa819e2b..59bc46d2fc 100644
> --- a/src/amd/vulkan/radv_formats.c
> +++ b/src/amd/vulkan/radv_formats.c
> @@ -667,6 +667,13 @@ radv_physical_device_get_format_properties(struct radv_physical_device *physical
>                                 linear |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT;
>                                 tiled |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT;
>                         }
> +
> +                       /* Don't support blitting for R32G32B32 formats. */
> +                       if (format == VK_FORMAT_R32G32B32_SFLOAT ||
> +                           format == VK_FORMAT_R32G32B32_UINT ||
> +                           format == VK_FORMAT_R32G32B32_SINT) {
> +                               linear &= ~VK_FORMAT_FEATURE_BLIT_SRC_BIT;
> +                       }
>                 }
>                 if (radv_is_colorbuffer_format_supported(format, &blendable)) {
>                         linear |= VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT | VK_FORMAT_FEATURE_BLIT_DST_BIT;
> --
> 2.19.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list