mirror of https://github.com/doitsujin/dxvk
[d3d9] Remove unused dstExtent + friends in GetRenderTargetData
This commit is contained in:
parent
935541bcb0
commit
10bb285f2e
|
@ -911,19 +911,11 @@ namespace dxvk {
|
||||||
srcSubresource.mipLevel,
|
srcSubresource.mipLevel,
|
||||||
srcSubresource.arrayLayer, 1 };
|
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([
|
EmitCs([
|
||||||
cBuffer = dstBuffer,
|
cBuffer = dstBuffer,
|
||||||
cImage = srcImage,
|
cImage = srcImage,
|
||||||
cSubresources = srcSubresourceLayers,
|
cSubresources = srcSubresourceLayers,
|
||||||
cLevelExtent = srcTexExtent,
|
cLevelExtent = srcTexExtent
|
||||||
cDstExtent = dstExtent
|
|
||||||
] (DxvkContext* ctx) {
|
] (DxvkContext* ctx) {
|
||||||
ctx->copyImageToBuffer(cBuffer, 0, 4, 0,
|
ctx->copyImageToBuffer(cBuffer, 0, 4, 0,
|
||||||
cImage, cSubresources, VkOffset3D { 0, 0, 0 },
|
cImage, cSubresources, VkOffset3D { 0, 0, 0 },
|
||||||
|
|
Loading…
Reference in New Issue