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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user