ac: add radeon_info::has_l2_uncached

For chips that have uncached device memory (ie. MTYPE_UC).

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
Samuel Pitoiset 2019-11-12 17:17:21 +01:00
parent 3c9ea6bdfd
commit 2af7511ed2
2 changed files with 4 additions and 0 deletions

View File

@ -410,6 +410,9 @@ bool ac_query_gpu_info(int fd, void *dev_p,
else
info->max_alloc_size = info->gart_size * 0.7;
/* Set which chips have uncached device memory. */
info->has_l2_uncached = info->chip_class >= GFX9;
/* Set hardware information. */
info->gds_size = gds.gds_total_size;
info->gds_gfx_partition_size = gds.gds_gfx_partition_size;

View File

@ -91,6 +91,7 @@ struct radeon_info {
uint32_t min_alloc_size;
uint32_t address32_hi;
bool has_dedicated_vram;
bool has_l2_uncached;
bool r600_has_virtual_memory;
uint32_t num_sdp_interfaces;
uint32_t num_tcc_blocks;