From 861167f41d17e1c8d114cb511a817308491327c1 Mon Sep 17 00:00:00 2001 From: sjfricke Date: Wed, 10 Aug 2022 21:15:27 +0900 Subject: [PATCH] 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 Fixes: c27fcb1d3ba ("isl: Fill in MOCS for NULL depth, stencil, and HiZ buffers.") Reviewed-by: Nanley Chery Reviewed-by: Jason Ekstrand Part-of: --- 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