From 179dd9f858f0f5b0e52b61aefc621dc82e2ad34a Mon Sep 17 00:00:00 2001 From: Lorenzo Dal Col Date: Thu, 26 Sep 2024 20:34:35 +0200 Subject: [PATCH] Fix build Change-Id: I6a20f64f77b3a1479f1ddaec6be166903196cd0b --- .../vulkancts/modules/vulkan/draw/vktDrawIndirectTest.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/external/vulkancts/modules/vulkan/draw/vktDrawIndirectTest.cpp b/external/vulkancts/modules/vulkan/draw/vktDrawIndirectTest.cpp index aec47e8a0a..2747809454 100644 --- a/external/vulkancts/modules/vulkan/draw/vktDrawIndirectTest.cpp +++ b/external/vulkancts/modules/vulkan/draw/vktDrawIndirectTest.cpp @@ -1801,8 +1801,9 @@ tcu::TestStatus IndirectDrawCountClampTest::iterate(void) submitCommandsAndWait(m_vk, device, queue, m_cmdBuffer.get()); // Validation - tcu::Texture2D referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5f + static_cast(WIDTH)), - (int)(0.5f + static_cast(HEIGHT))); + tcu::Texture2D referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), + (int)(0.5f + static_cast(m_renderWidth)), + (int)(0.5f + static_cast(m_renderHeight))); referenceFrame.allocLevel(0); const int32_t frameWidth = referenceFrame.getWidth(); @@ -1836,7 +1837,7 @@ tcu::TestStatus IndirectDrawCountClampTest::iterate(void) const vk::VkOffset3D zeroOffset = {0, 0, 0}; const tcu::ConstPixelBufferAccess renderedFrame = m_colorTargetImage->readSurface(queue, m_context.getDefaultAllocator(), vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, - WIDTH, HEIGHT, vk::VK_IMAGE_ASPECT_COLOR_BIT); + (int)m_renderWidth, (int)m_renderHeight, vk::VK_IMAGE_ASPECT_COLOR_BIT); qpTestResult res = QP_TEST_RESULT_PASS;