From: Jason Ekstrand Date: Sat, 27 Jul 2019 13:55:47 +0000 (-0500) Subject: anv: Don't claim support for 24 and 48-bit formats on IVB X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99d04a5bd6ab41f48d81d2096dbe6d832f1a9774;p=mesa.git anv: Don't claim support for 24 and 48-bit formats on IVB Cc: mesa-stable@lists.freedesktop.org --- diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c index ceb62e34573..2e2fc851057 100644 --- a/src/intel/vulkan/anv_formats.c +++ b/src/intel/vulkan/anv_formats.c @@ -467,6 +467,14 @@ anv_get_format_plane(const struct gen_device_info *devinfo, VkFormat vk_format, const struct isl_format_layout *isl_layout = isl_format_get_layout(plane_format.isl_format); + /* On Ivy Bridge we don't even have enough 24 and 48-bit formats that we + * can reliably do texture upload with BLORP so just don't claim support + * for any of them. + */ + if (devinfo->gen == 7 && !devinfo->is_haswell && + (isl_layout->bpb == 24 || isl_layout->bpb == 48)) + return unsupported; + if (tiling == VK_IMAGE_TILING_OPTIMAL && !util_is_power_of_two_or_zero(isl_layout->bpb)) { /* Tiled formats *must* be power-of-two because we need up upload