mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 15:10:10 +01:00
intel: Rename PAT entries
Here renaming the PAT entries to a name that better express each entry. Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25447>
This commit is contained in:
parent
76aad457a1
commit
7046a9e280
4 changed files with 13 additions and 8 deletions
|
|
@ -2628,7 +2628,7 @@ iris_bufmgr_get_pat_entry_for_bo_flags(const struct iris_bufmgr *bufmgr,
|
|||
const struct intel_device_info *devinfo = &bufmgr->devinfo;
|
||||
|
||||
if (alloc_flags & BO_ALLOC_COHERENT)
|
||||
return &devinfo->pat.coherent;
|
||||
return &devinfo->pat.cached_coherent;
|
||||
|
||||
if (alloc_flags & (BO_ALLOC_SHARED | BO_ALLOC_SCANOUT))
|
||||
return &devinfo->pat.scanout;
|
||||
|
|
|
|||
|
|
@ -1136,10 +1136,12 @@ static const struct intel_device_info intel_device_info_atsm_g11 = {
|
|||
.has_coarse_pixel_primitive_and_cb = true, \
|
||||
.has_mesh_shading = true, \
|
||||
.has_ray_tracing = true, \
|
||||
.pat.coherent = PAT_ENTRY(3, WB, 1WAY), \
|
||||
.pat.scanout = PAT_ENTRY(1, WC, NONE), \
|
||||
.pat.writeback = PAT_ENTRY(0, WB, NONE), \
|
||||
.pat.writecombining = PAT_ENTRY(1, WC, NONE)
|
||||
.pat = { \
|
||||
.cached_coherent = PAT_ENTRY(3, WB, 1WAY), \
|
||||
.scanout = PAT_ENTRY(1, WC, NONE), \
|
||||
.writeback_incoherent = PAT_ENTRY(0, WB, NONE), \
|
||||
.writecombining = PAT_ENTRY(1, WC, NONE), \
|
||||
}
|
||||
|
||||
static const struct intel_device_info intel_device_info_mtl_u = {
|
||||
MTL_FEATURES,
|
||||
|
|
|
|||
|
|
@ -487,9 +487,12 @@ struct intel_device_info
|
|||
} mem;
|
||||
|
||||
struct {
|
||||
struct intel_device_info_pat_entry coherent;
|
||||
/* To be used when CPU access is frequent, WB + 1 or 2 way coherent */
|
||||
struct intel_device_info_pat_entry cached_coherent;
|
||||
/* scanout and external BOs */
|
||||
struct intel_device_info_pat_entry scanout;
|
||||
struct intel_device_info_pat_entry writeback;
|
||||
/* BOs without special needs, can be WB not coherent or WC it depends on the platforms and KMD */
|
||||
struct intel_device_info_pat_entry writeback_incoherent;
|
||||
struct intel_device_info_pat_entry writecombining;
|
||||
} pat;
|
||||
|
||||
|
|
|
|||
|
|
@ -5184,7 +5184,7 @@ anv_device_get_pat_entry(struct anv_device *device,
|
|||
enum anv_bo_alloc_flags alloc_flags)
|
||||
{
|
||||
if (alloc_flags & (ANV_BO_ALLOC_SNOOPED))
|
||||
return &device->info->pat.coherent;
|
||||
return &device->info->pat.cached_coherent;
|
||||
else if (alloc_flags & (ANV_BO_ALLOC_EXTERNAL | ANV_BO_ALLOC_SCANOUT))
|
||||
return &device->info->pat.scanout;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue