intel/isl: Add initial data-structure support for miptails
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 3 Mar 2018 00:02:58 +0000 (16:02 -0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 1 Sep 2023 23:22:17 +0000 (23:22 +0000)
commitb1862a096468a2c29c96d7e9c1ea11b7265c3f0d
treecc3e55ee67e2f40d6bae9aef3999f092c9776dcd
parent68ac5c21658f400387082a6a9416d522947d0cdc
intel/isl: Add initial data-structure support for miptails

This commit just adds a miptail start field to isl_surf and wires it up
in the RENDER_SURFACE_STATE and 3DSTATE_DEPTH code.  We also add a
minimum miptail LOD so that client drivers have a knob to control the
miptails a bit.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@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.h
src/intel/isl/isl_emit_cpb.c
src/intel/isl/isl_emit_depth_stencil.c
src/intel/isl/isl_surface_state.c