mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 00:00:12 +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> (cherry picked from commit6cadc1baea)
This commit is contained in:
parent
f2fa2ea466
commit
40babe1efb
2 changed files with 3 additions and 2 deletions
|
|
@ -1904,7 +1904,7 @@
|
|||
"description": "tu: Fix GMEM offset for multisample layered separate stencil",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "def56b531c86f529bc32d1834ccb479457717db7",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -648,7 +648,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