tu: Fix GMEM offset for multisample layered separate stencil
Fixes a bug uncovered by CTS when enabling GMEM with layered rendering.
Fixes: def56b531c ("tu: Support GMEM with layered rendering and multiview")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34082>
This commit is contained in:
@@ -651,7 +651,8 @@ tu_attachment_gmem_offset_stencil(struct tu_cmd_buffer *cmd,
|
||||
{
|
||||
assert(cmd->state.gmem_layout < TU_GMEM_LAYOUT_COUNT);
|
||||
return att->gmem_offset_stencil[cmd->state.gmem_layout] +
|
||||
layer * cmd->state.tiling->tile0.width * cmd->state.tiling->tile0.height;
|
||||
layer * cmd->state.tiling->tile0.width * cmd->state.tiling->tile0.height *
|
||||
att->samples;
|
||||
}
|
||||
|
||||
void tu_render_pass_state_merge(struct tu_render_pass_state *dst,
|
||||
|
||||
Reference in New Issue
Block a user