turnip: update tile_align_w/tile_align_h
authorJonathan Marek <jonathan@marek.ca>
Thu, 12 Dec 2019 21:58:03 +0000 (16:58 -0500)
committerJonathan Marek <jonathan@marek.ca>
Fri, 13 Dec 2019 01:33:17 +0000 (20:33 -0500)
It looks like the actual tile alignment requirement is less than 32x32, but
in some cases input attachment texture needs 64 alignment.

Reduced the h alignment to 16 to compensate and it seems to work fine.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/freedreno/vulkan/tu_device.c

index dc998ea7d59e96c7585e2937cb75ec95cd6b9ad6..ba8796be7aa271f5910c7a99bf1f6adcdb61bff7 100644 (file)
@@ -258,8 +258,8 @@ tu_physical_device_init(struct tu_physical_device *device,
    switch (device->gpu_id) {
    case 630:
    case 640:
-      device->tile_align_w = 32;
-      device->tile_align_h = 32;
+      device->tile_align_w = 64;
+      device->tile_align_h = 16;
       break;
    default:
       result = vk_errorf(instance, VK_ERROR_INITIALIZATION_FAILED,