Module: Mesa Branch: main Commit: 861167f41d17e1c8d114cb511a817308491327c1 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=861167f41d17e1c8d114cb511a817308491327c1
Author: sjfricke <[email protected]> Date: Wed Aug 10 21:15:27 2022 +0900 isl: fix bug where sb.MOCS is not being set Currently the sb.MOCS is being reset to zero after struct init. Signed-off-by: sjfricke <[email protected]> Fixes: c27fcb1d3ba ("isl: Fill in MOCS for NULL depth, stencil, and HiZ buffers.") Reviewed-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17985> --- src/intel/isl/isl_emit_depth_stencil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/isl/isl_emit_depth_stencil.c b/src/intel/isl/isl_emit_depth_stencil.c index 07f430112ad..655f4dfe195 100644 --- a/src/intel/isl/isl_emit_depth_stencil.c +++ b/src/intel/isl/isl_emit_depth_stencil.c @@ -170,7 +170,7 @@ isl_genX(emit_depth_stencil_hiz_s)(const struct isl_device *dev, void *batch, #if GFX_VER >= 6 struct GENX(3DSTATE_STENCIL_BUFFER) sb = { GENX(3DSTATE_STENCIL_BUFFER_header), - sb.MOCS = info->mocs, + .MOCS = info->mocs, }; #else # define sb db
