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:
parent
3c9ea6bdfd
commit
2af7511ed2
|
@ -410,6 +410,9 @@ bool ac_query_gpu_info(int fd, void *dev_p,
|
||||||
else
|
else
|
||||||
info->max_alloc_size = info->gart_size * 0.7;
|
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. */
|
/* Set hardware information. */
|
||||||
info->gds_size = gds.gds_total_size;
|
info->gds_size = gds.gds_total_size;
|
||||||
info->gds_gfx_partition_size = gds.gds_gfx_partition_size;
|
info->gds_gfx_partition_size = gds.gds_gfx_partition_size;
|
||||||
|
|
|
@ -91,6 +91,7 @@ struct radeon_info {
|
||||||
uint32_t min_alloc_size;
|
uint32_t min_alloc_size;
|
||||||
uint32_t address32_hi;
|
uint32_t address32_hi;
|
||||||
bool has_dedicated_vram;
|
bool has_dedicated_vram;
|
||||||
|
bool has_l2_uncached;
|
||||||
bool r600_has_virtual_memory;
|
bool r600_has_virtual_memory;
|
||||||
uint32_t num_sdp_interfaces;
|
uint32_t num_sdp_interfaces;
|
||||||
uint32_t num_tcc_blocks;
|
uint32_t num_tcc_blocks;
|
||||||
|
|
Loading…
Reference in New Issue