diff options
author | Jason Ekstrand <[email protected]> | 2016-01-26 17:28:16 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-01-26 20:29:16 -0800 |
commit | 9ac624751ea8343a30865fefacd2b999268c541f (patch) | |
tree | 18b224e4d485f11d0d21c85d86ed171df1376629 | |
parent | 2af3acd0612fe2d08d18b274d977530fa6f913ab (diff) |
anv/formats: Use is_power_of_two instead of is_rgb to determine renderability
-rw-r--r-- | src/vulkan/anv_formats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vulkan/anv_formats.c b/src/vulkan/anv_formats.c index 30e865c39b6..3b63c97e5f4 100644 --- a/src/vulkan/anv_formats.c +++ b/src/vulkan/anv_formats.c @@ -409,7 +409,7 @@ anv_physical_device_get_format_properties(struct anv_physical_device *physical_d * what most clients will want. */ if (linear_fmt != ISL_FORMAT_UNSUPPORTED && - isl_format_is_rgb(linear_fmt) && + !util_is_power_of_two(isl_format_layouts[linear_fmt].bs) && isl_format_rgb_to_rgbx(linear_fmt) == ISL_FORMAT_UNSUPPORTED) { tiled &= ~VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT & ~VK_FORMAT_FEATURE_BLIT_DST_BIT; |