mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
intel/common: Add an enum of formats of AUX mapping
The new enum allows us to support multiple formats in the future. 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:
parent
90c86fe63e
commit
6b3740f359
1 changed files with 18 additions and 0 deletions
|
|
@ -93,6 +93,24 @@
|
|||
|
||||
static const bool aux_map_debug = false;
|
||||
|
||||
/**
|
||||
* Auxiliary surface mapping formats
|
||||
*
|
||||
* Several formats of AUX mapping exist. The supported formats
|
||||
* are designated by generation and granularity here. A device
|
||||
* can support more than one format, depending on Hardware, but
|
||||
* we expect only one of them of a device is needed. Otherwise,
|
||||
* we could need to change this enum into a bit map in such case
|
||||
* later.
|
||||
*/
|
||||
enum intel_aux_map_format {
|
||||
/**
|
||||
* 64KB granularity format on GFX12 devices
|
||||
*/
|
||||
INTEL_AUX_MAP_GFX12_64KB = 0,
|
||||
INTEL_AUX_MAP_LAST,
|
||||
};
|
||||
|
||||
struct aux_map_buffer {
|
||||
struct list_head link;
|
||||
struct intel_buffer *buffer;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue