radv: add support for some device specific tess information.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Dave Airlie
2017-03-30 07:58:22 +01:00
parent 2b3c4bcc1f
commit bbfb62df16
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -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;
+2
View File
@@ -487,6 +487,8 @@ struct radv_device {
uint64_t debug_flags;
bool llvm_supports_spill;
bool has_distributed_tess;
uint32_t tess_offchip_block_dw_size;
uint32_t scratch_waves;
uint32_t gs_table_depth;