intel/aux_map: Ignore format bits when using tile-4
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 13 Dec 2022 22:07:02 +0000 (17:07 -0500)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 15 Dec 2022 19:43:00 +0000 (11:43 -0800)
commitf81579628a60de73146c9bc5b774b83a63489a4a
tree8e1896d78e9c50ce24bbc5e4a514eaaf23ff6769
parent1bcce906e91628ded6e45243f89d331cbd24d855
intel/aux_map: Ignore format bits when using tile-4

Based on Jianxun's ("iris: don't get format bits in AUX tables").

With gfx12.5+, the compression format is once again coming from the
surface state programming. MTL once again uses an aux-map, but it
ignores the format bits within the the aux-map metadata.

Ref: Bspec 44930: "Compression format from AUX page walk is ignored.
Instead compression format from Surface State is used."

gfx12.5+ also uses tile-4 rather than y-tiling, so if we don't see
y-tiling, we can return 0 from intel_aux_map_format_bits() for the
ignored format bits.

Rework:
 * Just return 0 if not using y-tiling as suggested by Nanley.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jianxun Zhang <jianxun.zhang@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20322>
src/intel/common/intel_aux_map.c