Skip to content
Snippets Groups Projects
Commit 861167f4 authored by Spencer Fricke's avatar Spencer Fricke :speech_balloon: Committed by Marge Bot
Browse files

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: default avatarsjfricke <spencerfricke@gmail.com>
Fixes: c27fcb1d ("isl: Fill in MOCS for NULL depth, stencil, and HiZ buffers.")
Reviewed-by: default avatarNanley Chery <nanley.g.chery@intel.com>
Reviewed-by: default avatarJason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <mesa/mesa!17985>
parent a3a04ed6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment