diff options
author | Chia-I Wu <[email protected]> | 2019-01-22 10:27:18 -0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2019-03-11 10:02:13 -0700 |
commit | 7c4483de0ee7b46981dab0459d222774524db461 (patch) | |
tree | c819937fcbab18c853d2ff64ff52f8faec08f43c /src/freedreno/vulkan/tu_pass.c | |
parent | 9c83a7572b22c907cb41107cd991ec4fcea216cf (diff) |
turnip: preliminary support for tu_GetRenderAreaGranularity
Set it to tile alignments, 32x32 on 6xx.
Diffstat (limited to 'src/freedreno/vulkan/tu_pass.c')
-rw-r--r-- | src/freedreno/vulkan/tu_pass.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/freedreno/vulkan/tu_pass.c b/src/freedreno/vulkan/tu_pass.c index 54047055a4f..e97cc2fc9d4 100644 --- a/src/freedreno/vulkan/tu_pass.c +++ b/src/freedreno/vulkan/tu_pass.c @@ -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; } |