d3d12: Fix placed footprint of subresources

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19220>
This commit is contained in:
Damian Korczowski
2022-10-21 11:00:09 +00:00
committed by Marge Bot
parent 479eb67aac
commit 5b47e32474

View File

@@ -1041,7 +1041,7 @@ fill_buffer_location(struct d3d12_context *ctx,
buf_loc.Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT;
buf_loc.pResource = d3d12_resource_underlying(staging_res, &offset);
buf_loc.PlacedFootprint = footprint;
buf_loc.PlacedFootprint.Offset += offset;
buf_loc.PlacedFootprint.Offset = offset;
buf_loc.PlacedFootprint.Offset += trans->base.b.offset;
if (util_format_has_depth(util_format_description(res->base.b.format)) &&