summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_device.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-03-30 07:58:22 +0100
committerDave Airlie <[email protected]>2017-04-01 07:15:26 +1000
commitbbfb62df166527b20c9a2217c559119c138f3af4 (patch)
treedec9c681cf780b5168e73c89af4b42f6b55bfdbf /src/amd/vulkan/radv_device.c
parent2b3c4bcc1f69bcb8620d98061309c5286cf952e6 (diff)
radv: add support for some device specific tess information.
Reviewed-by: Bas Nieuwenhuizen <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_device.c')
-rw-r--r--src/amd/vulkan/radv_device.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 64970bd1b3a..fe531e1072f 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -962,6 +962,12 @@ VkResult radv_CreateDevice(
radv_device_init_gs_info(device);
+ device->tess_offchip_block_dw_size =
+ device->physical_device->rad_info.family == CHIP_HAWAII ? 4096 : 8192;
+ device->has_distributed_tess =
+ device->physical_device->rad_info.chip_class >= VI &&
+ device->physical_device->rad_info.max_se >= 2;
+
result = radv_device_init_meta(device);
if (result != VK_SUCCESS)
goto fail;