intel/common: Add a new struct to describe AUX mapping format
The new struct and some helper functions are for further refactoring. Reworks: * Jordan: Refactor code around aux format array 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/20167>
This commit is contained in:
@@ -72,6 +72,20 @@ intel_aux_map_get_state_num(struct intel_aux_map_context *ctx);
|
||||
uint32_t
|
||||
intel_aux_map_get_num_buffers(struct intel_aux_map_context *ctx);
|
||||
|
||||
/**
|
||||
* Returns the mask of meta data address in L1 entry
|
||||
*
|
||||
* The mask value is effected by page size of meta data specific to a platform.
|
||||
*/
|
||||
uint64_t
|
||||
intel_aux_get_meta_address_mask(struct intel_aux_map_context *ctx);
|
||||
|
||||
/**
|
||||
* Returns the ratio between the granularity of main surface and AUX data
|
||||
*/
|
||||
uint64_t
|
||||
intel_aux_get_main_to_aux_ratio(struct intel_aux_map_context *ctx);
|
||||
|
||||
/** Fill an array of exec_object2 with aux-map buffer handles
|
||||
*
|
||||
* The intel_aux_map_get_num_buffers call should be made, then the driver can
|
||||
|
Reference in New Issue
Block a user