mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
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:
parent
b1dcc9a1d7
commit
6cadc1baea
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue