[host] d12: fix damage tracking with RGB24 enabled

This commit is contained in:
Geoffrey McRae
2024-02-24 09:04:59 +11:00
parent 2f3ca443cf
commit 4408359597
5 changed files with 32 additions and 16 deletions

View File

@@ -428,7 +428,7 @@ static CaptureResult d12_waitFrame(unsigned frameBufferIndex,
CaptureResult result = CAPTURE_RESULT_ERROR;
comRef_scopePush(1);
const RECT * dirtyRects;
RECT * dirtyRects;
unsigned nbDirtyRects;
comRef_defineLocal(ID3D12Resource, src);
@@ -543,7 +543,7 @@ static CaptureResult d12_getFrame(unsigned frameBufferIndex,
CaptureResult result = CAPTURE_RESULT_ERROR;
comRef_scopePush(3);
const RECT * dirtyRects;
RECT * dirtyRects;
unsigned nbDirtyRects;
comRef_defineLocal(ID3D12Resource, src);
@@ -572,7 +572,8 @@ static CaptureResult d12_getFrame(unsigned frameBufferIndex,
if (this->allowRGB24)
{
next = d12_effectRun(
this->effectRGB24, *this->device, *this->computeCommand.gfxList, next);
this->effectRGB24, *this->device, *this->computeCommand.gfxList, next,
dirtyRects, &nbDirtyRects);
}
// copy into the framebuffer resource