intel/isl: Implement correct tile size calculations for Ys/Yf
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 22 Feb 2018 00:04:32 +0000 (16:04 -0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 1 Sep 2023 23:22:17 +0000 (23:22 +0000)
commit911832e9cfac39a1bb160853c6302fd4adaceee0
tree7a7b0a76355d86c5ab0e9f9ad347a8cfd9eeb17d
parente230ef329bf0ac79fbe7360dbdcb6a64b59e133e
intel/isl: Implement correct tile size calculations for Ys/Yf

The tile size calculations use a clever bit of math to make them short
and simple.  We add unit tests to assert that they identically match the
tables in the PRM.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23620>
src/intel/isl/isl.c
src/intel/isl/isl_gfx12.c
src/intel/isl/isl_gfx9.c
src/intel/isl/meson.build
src/intel/isl/tests/isl_tile_std_y_test.c [new file with mode: 0644]