From 5262475242b8156d015e3d7db7ce860e202530be Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sun, 28 Nov 2021 01:06:16 -0800 Subject: [PATCH] intel/dev: Add a has_flat_ccs flag This should only be set on XeHP. It implies that CCS works via based on the virtual addresses involved and a flat memory carve-out, rather than treating CCS like a surface, or using auxiliary maps. Reviewed-by: Caio Oliveira Part-of: --- src/intel/dev/intel_device_info.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/intel/dev/intel_device_info.h b/src/intel/dev/intel_device_info.h index c3473cf4125..da897981a12 100644 --- a/src/intel/dev/intel_device_info.h +++ b/src/intel/dev/intel_device_info.h @@ -126,6 +126,12 @@ struct intel_device_info bool has_surface_tile_offset; bool supports_simd16_3src; bool disable_ccs_repack; + + /** + * True if CCS uses a flat virtual address translation to a memory + * carve-out, rather than aux map translations, or additional surfaces. + */ + bool has_flat_ccs; bool has_aux_map; bool has_tiling_uapi; bool has_ray_tracing;