intel/common: clean up AUX macros

The hardcoded is either replaced with new interfaces or relocated
to C file if it is private.

Signed-off-by: Jianxun Zhang <jianxun.zhang@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20259>
This commit is contained in:
Jianxun Zhang
2022-11-13 12:44:49 -08:00
committed by Marge Bot
parent 9ff471fdc6
commit c14857e915
2 changed files with 2 additions and 6 deletions

View File

@@ -43,13 +43,7 @@ extern "C" {
struct intel_aux_map_context;
struct intel_device_info;
#define INTEL_AUX_MAP_ADDRESS_MASK 0x0000ffffffffff00ull
#define INTEL_AUX_MAP_FORMAT_BITS_MASK 0xfff0000000000000ull
#define INTEL_AUX_MAP_ENTRY_VALID_BIT 0x1ull
#define INTEL_AUX_MAP_GFX12_CCS_SCALE 256
#define INTEL_AUX_MAP_MAIN_PAGE_SIZE (64 * 1024)
#define INTEL_AUX_MAP_AUX_PAGE_SIZE \
(INTEL_AUX_MAP_MAIN_PAGE_SIZE / INTEL_AUX_MAP_GFX12_CCS_SCALE)
struct intel_aux_map_context *
intel_aux_map_init(void *driver_ctx,