tu: Add noubwc debug flag to disable UBWC
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5007>
This commit is contained in:
parent
ed79f805fa
commit
40e842c009
|
@ -383,6 +383,7 @@ static const struct debug_control tu_debug_options[] = {
|
|||
{ "nobin", TU_DEBUG_NOBIN },
|
||||
{ "sysmem", TU_DEBUG_SYSMEM },
|
||||
{ "forcebin", TU_DEBUG_FORCEBIN },
|
||||
{ "noubwc", TU_DEBUG_NOUBWC },
|
||||
{ NULL, 0 }
|
||||
};
|
||||
|
||||
|
|
|
@ -86,7 +86,8 @@ tu_image_create(VkDevice _device,
|
|||
EXTERNAL_MEMORY_IMAGE_CREATE_INFO) != NULL;
|
||||
|
||||
image->layout.tile_mode = TILE6_3;
|
||||
bool ubwc_enabled = true;
|
||||
bool ubwc_enabled =
|
||||
!(device->physical_device->instance->debug_flags & TU_DEBUG_NOUBWC);
|
||||
|
||||
/* disable tiling when linear is requested and for compressed formats */
|
||||
if (pCreateInfo->tiling == VK_IMAGE_TILING_LINEAR ||
|
||||
|
|
|
@ -353,6 +353,7 @@ enum tu_debug_flags
|
|||
TU_DEBUG_NOBIN = 1 << 3,
|
||||
TU_DEBUG_SYSMEM = 1 << 4,
|
||||
TU_DEBUG_FORCEBIN = 1 << 5,
|
||||
TU_DEBUG_NOUBWC = 1 << 6,
|
||||
};
|
||||
|
||||
struct tu_instance
|
||||
|
|
Loading…
Reference in New Issue