mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 04:00:10 +01:00
anv/formats: Use is_power_of_two instead of is_rgb to determine renderability
This commit is contained in:
parent
2af3acd061
commit
9ac624751e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue