mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
turnip: preliminary support for tu_GetRenderAreaGranularity
Set it to tile alignments, 32x32 on 6xx.
This commit is contained in:
parent
9c83a7572b
commit
7c4483de0e
3 changed files with 9 additions and 4 deletions
|
|
@ -223,8 +223,9 @@ tu_physical_device_init(struct tu_physical_device *device,
|
|||
sprintf(device->name, "FD%d", device->gpu_id);
|
||||
|
||||
switch (device->gpu_id) {
|
||||
case 530:
|
||||
case 630:
|
||||
device->tile_align_w = 32;
|
||||
device->tile_align_h = 32;
|
||||
break;
|
||||
default:
|
||||
result = vk_errorf(instance, VK_ERROR_INITIALIZATION_FAILED,
|
||||
|
|
|
|||
|
|
@ -405,10 +405,12 @@ tu_DestroyRenderPass(VkDevice _device,
|
|||
}
|
||||
|
||||
void
|
||||
tu_GetRenderAreaGranularity(VkDevice device,
|
||||
tu_GetRenderAreaGranularity(VkDevice _device,
|
||||
VkRenderPass renderPass,
|
||||
VkExtent2D *pGranularity)
|
||||
{
|
||||
pGranularity->width = 1;
|
||||
pGranularity->height = 1;
|
||||
TU_FROM_HANDLE(tu_device, device, _device);
|
||||
|
||||
pGranularity->width = device->physical_device->tile_align_w;
|
||||
pGranularity->height = device->physical_device->tile_align_h;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -295,6 +295,8 @@ struct tu_physical_device
|
|||
|
||||
unsigned gpu_id;
|
||||
uint32_t gmem_size;
|
||||
uint32_t tile_align_w;
|
||||
uint32_t tile_align_h;
|
||||
|
||||
/* This is the drivers on-disk cache used as a fallback as opposed to
|
||||
* the pipeline cache defined by apps.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue