radeonsi: fix depth stencil multi sample texture blit
This causes the flushed_depth_texture is allocated without multi sample. So the blit will cause VM fault. cc: mesa-stable Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14990>
This commit is contained in:
@@ -1717,6 +1717,7 @@ bool si_init_flushed_depth_texture(struct pipe_context *ctx, struct pipe_resourc
|
||||
resource.array_size = texture->array_size;
|
||||
resource.last_level = texture->last_level;
|
||||
resource.nr_samples = texture->nr_samples;
|
||||
resource.nr_storage_samples = texture->nr_storage_samples;
|
||||
resource.usage = PIPE_USAGE_DEFAULT;
|
||||
resource.bind = texture->bind & ~PIPE_BIND_DEPTH_STENCIL;
|
||||
resource.flags = texture->flags | SI_RESOURCE_FLAG_FLUSHED_DEPTH;
|
||||
|
||||
Reference in New Issue
Block a user