mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 12:20:15 +01:00
radeonsi: fix extra_md handling with fmask
Setting metadata on textures with fmask isn't allowed. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26774>
This commit is contained in:
parent
5371fca829
commit
981fbafa18
1 changed files with 2 additions and 1 deletions
|
|
@ -1372,7 +1372,8 @@ si_texture_create_with_modifier(struct pipe_screen *screen,
|
|||
last_plane->buffer.b.b.next = &tex->buffer.b.b;
|
||||
last_plane = tex;
|
||||
}
|
||||
if (i == 0 && !is_zs && sscreen->debug_flags & DBG(EXTRA_METADATA))
|
||||
if (i == 0 && !is_zs && tex->surface.fmask_size == 0 &&
|
||||
sscreen->debug_flags & DBG(EXTRA_METADATA))
|
||||
si_set_tex_bo_metadata(sscreen, tex);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue