isl: don't set inconsistent fields for depth when using stencil only
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sun, 20 Feb 2022 18:46:17 +0000 (20:46 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 17 Apr 2023 22:43:37 +0000 (22:43 +0000)
commit3ca1fdc8b56c0cb6d3c8687d4d13ec594f5041f1
tree51e65be5e6ad68605b5a680864eebf4fb9cf7037
parentf7bd375e3954bc96c31df43652ce1d845427501a
isl: don't set inconsistent fields for depth when using stencil only

Since Gfx12+ 3DSTATE_STENCIL_BUFFER gained its own
Width/Depth/Format/etc... fields. So don't set those fields but leave
the address/pitch to 0.

Issue found on simulation.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15637>
src/intel/isl/isl_emit_depth_stencil.c