This commit is contained in:
2025-10-06 08:34:14 +09:00
parent e75d565ba2
commit e63bd48731
2 changed files with 15 additions and 9 deletions

View File

@@ -345,6 +345,15 @@ uint8_t* D3D12Manager::ReadbackTexture(ID3D12Resource* texture, uint32_t width,
m_device->GetCopyableFootprints(&desc, 0, 1, 0, &layout, &num_rows, &row_size, &total_bytes);
// DEBUG: Check if desc dimensions match parameters
printf("[D3D12Manager::ReadbackTexture] DEBUG:\n");
printf(" Input params: width=%u, height=%u\n", width, height);
printf(" desc.Width=%llu, desc.Height=%u\n", desc.Width, desc.Height);
printf(" layout.Footprint: Width=%u, Height=%u, Depth=%u, RowPitch=%u\n",
layout.Footprint.Width, layout.Footprint.Height,
layout.Footprint.Depth, layout.Footprint.RowPitch);
printf(" num_rows=%u, row_size=%llu, total_bytes=%llu\n", num_rows, row_size, total_bytes);
// Create readback buffer
D3D12_HEAP_PROPERTIES readback_heap_props = {};
readback_heap_props.Type = D3D12_HEAP_TYPE_READBACK;

View File

@@ -111,18 +111,15 @@ int main(int argc, char* argv[])
printf("[RedSurfaceNVDECTest] Decoder: NVDEC (explicit)\n");
printf("[RedSurfaceNVDECTest] Surface: D3D12\n");
// Step 7: Create D3D12PixelValidator
// Step 7: Create D3D12PixelValidator (optional)
printf("\n[Step 7] Creating D3D12 GPU validator...\n");
D3D12PixelValidator validator;
if (!validator.Initialize(d3d12.GetDevice())) {
printf("[ERROR] Failed to initialize D3D12PixelValidator\n");
vavcore_close_file(player);
vavcore_destroy_player(player);
d3d12.Cleanup();
vavcore_cleanup();
return 1;
bool validator_enabled = validator.Initialize(d3d12.GetDevice());
if (!validator_enabled) {
printf("[WARN] D3D12PixelValidator initialization failed - continuing without GPU validation\n");
} else {
printf("[OK] D3D12PixelValidator initialized\n");
}
printf("[OK] D3D12PixelValidator initialized\n");
// Step 8: Continuous frame decoding (pipeline priming approach)
printf("\n[Step 8] Decoding and verifying frames (GPU validation)...\n\n");