mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
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 <spencerfricke@gmail.com>
Fixes: c27fcb1d3b ("isl: Fill in MOCS for NULL depth, stencil, and HiZ buffers.")
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17985>
This commit is contained in:
parent
a3a04ed6f3
commit
861167f41d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue