From 5b47e32474283596f026eb3f06c7f01e95712589 Mon Sep 17 00:00:00 2001 From: Damian Korczowski Date: Fri, 21 Oct 2022 11:00:09 +0000 Subject: [PATCH] d3d12: Fix placed footprint of subresources Part-of: --- src/gallium/drivers/d3d12/d3d12_resource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/d3d12/d3d12_resource.cpp b/src/gallium/drivers/d3d12/d3d12_resource.cpp index a1d9860c2ba..7bc95d5b5d6 100644 --- a/src/gallium/drivers/d3d12/d3d12_resource.cpp +++ b/src/gallium/drivers/d3d12/d3d12_resource.cpp @@ -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)) &&