Module: Mesa
Branch: master
Commit: 7bbcf7deff57ced3b7d4e3984851c5498d481767
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7bbcf7deff57ced3b7d4e3984851c5498d481767

Author: Jonathan Marek <[email protected]>
Date:   Thu Dec 12 16:58:03 2019 -0500

turnip: update tile_align_w/tile_align_h

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 <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>

---

 src/freedreno/vulkan/tu_device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c
index dc998ea7d59..ba8796be7aa 100644
--- a/src/freedreno/vulkan/tu_device.c
+++ b/src/freedreno/vulkan/tu_device.c
@@ -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,

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to