diff options
author | Jason Ekstrand <[email protected]> | 2019-07-27 08:55:47 -0500 |
---|---|---|
committer | Juan A. Suarez Romero <[email protected]> | 2019-07-30 08:31:00 +0000 |
commit | b1df082b003bf7864660350f9f4e404d6a49fae4 (patch) | |
tree | afc6423d1e50c4968ad34279454c10a7e5d3f91f /src | |
parent | 66ee5bd0826911b2db14c2ebf6f3a7392a3f68cc (diff) |
anv: Don't claim support for 24 and 48-bit formats on IVB
Cc: [email protected]
(cherry picked from commit 99d04a5bd6ab41f48d81d2096dbe6d832f1a9774)
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/vulkan/anv_formats.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c index 8cb967133cf..5be02b3e86e 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 |