mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
zink: fix layercount for array texture blits
3d is base, base+count, array is base, count
Fixes: 83bee837e5 ("zink: be more explicit about blit layer/depth usage")
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9999>
This commit is contained in:
parent
5e4d31f646
commit
44076a3d6c
1 changed files with 2 additions and 2 deletions
|
|
@ -145,7 +145,7 @@ blit_native(struct zink_context *ctx, const struct pipe_blit_info *info)
|
|||
case PIPE_TEXTURE_1D_ARRAY:
|
||||
/* these use layer */
|
||||
region.srcSubresource.baseArrayLayer = info->src.box.z;
|
||||
region.srcSubresource.layerCount = info->src.box.z + info->src.box.depth;
|
||||
region.srcSubresource.layerCount = info->src.box.depth;
|
||||
region.srcOffsets[0].z = 0;
|
||||
region.srcOffsets[1].z = 1;
|
||||
break;
|
||||
|
|
@ -178,7 +178,7 @@ blit_native(struct zink_context *ctx, const struct pipe_blit_info *info)
|
|||
case PIPE_TEXTURE_1D_ARRAY:
|
||||
/* these use layer */
|
||||
region.dstSubresource.baseArrayLayer = info->dst.box.z;
|
||||
region.dstSubresource.layerCount = info->dst.box.z + info->dst.box.depth;
|
||||
region.dstSubresource.layerCount = info->dst.box.depth;
|
||||
region.dstOffsets[0].z = 0;
|
||||
region.dstOffsets[1].z = 1;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue