mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-11 17:50:32 +01:00
ac: get tcc_harvested from the kernel
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
4d1e43badb
commit
9edcce2a32
2 changed files with 9 additions and 4 deletions
|
|
@ -1286,7 +1286,7 @@ dep_libdrm_radeon = null_dep
|
||||||
dep_libdrm_nouveau = null_dep
|
dep_libdrm_nouveau = null_dep
|
||||||
dep_libdrm_intel = null_dep
|
dep_libdrm_intel = null_dep
|
||||||
|
|
||||||
_drm_amdgpu_ver = '2.4.99'
|
_drm_amdgpu_ver = '2.4.100'
|
||||||
_drm_radeon_ver = '2.4.71'
|
_drm_radeon_ver = '2.4.71'
|
||||||
_drm_nouveau_ver = '2.4.66'
|
_drm_nouveau_ver = '2.4.66'
|
||||||
_drm_intel_ver = '2.4.75'
|
_drm_intel_ver = '2.4.75'
|
||||||
|
|
|
||||||
|
|
@ -470,9 +470,14 @@ bool ac_query_gpu_info(int fd, void *dev_p,
|
||||||
}
|
}
|
||||||
if (info->chip_class >= GFX10) {
|
if (info->chip_class >= GFX10) {
|
||||||
info->tcc_cache_line_size = 128;
|
info->tcc_cache_line_size = 128;
|
||||||
/* This is a hack, but it's all we can do without a kernel upgrade. */
|
|
||||||
info->tcc_harvested =
|
if (info->drm_minor >= 35) {
|
||||||
(info->vram_size / info->num_tcc_blocks) != 512*1024*1024;
|
info->tcc_harvested = device_info.tcc_disabled_mask != 0;
|
||||||
|
} else {
|
||||||
|
/* This is a hack, but it's all we can do without a kernel upgrade. */
|
||||||
|
info->tcc_harvested =
|
||||||
|
(info->vram_size / info->num_tcc_blocks) != 512*1024*1024;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
info->tcc_cache_line_size = 64;
|
info->tcc_cache_line_size = 64;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue