mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
turnip: enable tiling for compressed formats
Now that layout code supports this, we can enable it. Signed-off-by: Jonathan Marek <jonathan@marek.ca> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5009>
This commit is contained in:
parent
f543d87f23
commit
d76e722ed6
1 changed files with 5 additions and 2 deletions
|
|
@ -90,12 +90,15 @@ tu_image_create(VkDevice _device,
|
|||
|
||||
/* disable tiling when linear is requested and for compressed formats */
|
||||
if (pCreateInfo->tiling == VK_IMAGE_TILING_LINEAR ||
|
||||
modifier == DRM_FORMAT_MOD_LINEAR ||
|
||||
vk_format_is_compressed(image->vk_format)) {
|
||||
modifier == DRM_FORMAT_MOD_LINEAR) {
|
||||
image->layout.tile_mode = TILE6_LINEAR;
|
||||
ubwc_enabled = false;
|
||||
}
|
||||
|
||||
/* don't use UBWC with compressed formats */
|
||||
if (vk_format_is_compressed(image->vk_format))
|
||||
ubwc_enabled = false;
|
||||
|
||||
/* UBWC can't be used with E5B9G9R9 */
|
||||
if (image->vk_format == VK_FORMAT_E5B9G9R9_UFLOAT_PACK32)
|
||||
ubwc_enabled = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue