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,
}
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;
}