Skip to content

Commit 32b1a3b

Browse files
committed
Fix build
Change-Id: I6a20f64f77b3a1479f1ddaec6be166903196cd0b
1 parent 717e240 commit 32b1a3b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

external/vulkancts/modules/vulkan/draw/vktDrawIndirectTest.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -1801,8 +1801,9 @@ tcu::TestStatus IndirectDrawCountClampTest::iterate(void)
18011801
submitCommandsAndWait(m_vk, device, queue, m_cmdBuffer.get());
18021802

18031803
// Validation
1804-
tcu::Texture2D referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5f + static_cast<float>(WIDTH)),
1805-
(int)(0.5f + static_cast<float>(HEIGHT)));
1804+
tcu::Texture2D referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat),
1805+
(int)(0.5f + static_cast<float>(m_renderWidth)),
1806+
(int)(0.5f + static_cast<float>(m_renderHeight)));
18061807
referenceFrame.allocLevel(0);
18071808

18081809
const int32_t frameWidth = referenceFrame.getWidth();
@@ -1836,7 +1837,7 @@ tcu::TestStatus IndirectDrawCountClampTest::iterate(void)
18361837
const vk::VkOffset3D zeroOffset = {0, 0, 0};
18371838
const tcu::ConstPixelBufferAccess renderedFrame =
18381839
m_colorTargetImage->readSurface(queue, m_context.getDefaultAllocator(), vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset,
1839-
WIDTH, HEIGHT, vk::VK_IMAGE_ASPECT_COLOR_BIT);
1840+
(int)m_renderWidth, (int)m_renderHeight, vk::VK_IMAGE_ASPECT_COLOR_BIT);
18401841

18411842
qpTestResult res = QP_TEST_RESULT_PASS;
18421843

0 commit comments

Comments
 (0)