mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
asahi: Account for layering for attachment views
Do not force a single-layer view, use an actual array attachment when there are multiple layers, since this corresponds to a layered framebuffer that will write to an array with the eMRT path. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
parent
9dc87a00fd
commit
68437eb0ba
1 changed files with 2 additions and 1 deletions
|
|
@ -1061,7 +1061,8 @@ image_view_for_surface(struct pipe_surface *surf)
|
|||
.format = surf->format,
|
||||
.access = PIPE_IMAGE_ACCESS_READ_WRITE,
|
||||
.shader_access = PIPE_IMAGE_ACCESS_READ_WRITE,
|
||||
.u.tex.single_layer_view = true,
|
||||
.u.tex.single_layer_view =
|
||||
surf->u.tex.first_layer == surf->u.tex.last_layer,
|
||||
.u.tex.first_layer = surf->u.tex.first_layer,
|
||||
.u.tex.last_layer = surf->u.tex.last_layer,
|
||||
.u.tex.level = surf->u.tex.level,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue