[d3d9] Remove unused dstExtent + friends in GetRenderTargetData

This commit is contained in:
Joshua Ashton 2022-09-10 21:29:28 +00:00 committed by Joshie
parent 935541bcb0
commit 10bb285f2e
1 changed files with 1 additions and 9 deletions

View File

@ -911,19 +911,11 @@ namespace dxvk {
srcSubresource.mipLevel,
srcSubresource.arrayLayer, 1 };
VkExtent3D texLevelExtentBlockCount = util::computeBlockCount(srcTexExtent, srcFormatInfo->blockSize);
VkDeviceSize pitch = align(texLevelExtentBlockCount.width * uint32_t(srcFormatInfo->elementSize), 4);
uint32_t pitchBlocks = uint32_t(pitch / srcFormatInfo->elementSize);
VkExtent2D dstExtent = VkExtent2D{ pitchBlocks,
texLevelExtentBlockCount.height * pitchBlocks };
EmitCs([
cBuffer = dstBuffer,
cImage = srcImage,
cSubresources = srcSubresourceLayers,
cLevelExtent = srcTexExtent,
cDstExtent = dstExtent
cLevelExtent = srcTexExtent
] (DxvkContext* ctx) {
ctx->copyImageToBuffer(cBuffer, 0, 4, 0,
cImage, cSubresources, VkOffset3D { 0, 0, 0 },