Home | History | Annotate | Download | only in synchronization

Lines Matching refs:testContext

553 struct TestContext
582 TestContext (const DeviceInterface& vkd_,
598 ~TestContext()
604 void generateWork (TestContext& testContext)
606 const DeviceInterface& deviceInterface = testContext.vkd;
607 const deUint32 queueFamilyNdx = testContext.queueFamilyIndex;
612 testContext.device,
613 testContext.binaryCollection.get("glslvert"),
617 testContext.device,
618 testContext.binaryCollection.get("glslfrag"),
692 bufferParameters.memory = testContext.vertices;
693 bufferParameters.size = testContext.numVertices * sizeof(tcu::Vec4);
699 createVulkanBuffer(deviceInterface, testContext.device, testContext.allocator, bufferParameters, buffer, MemoryRequirement::HostVisible);
700 testContext.vertexBufferAllocation = buffer.allocation;
701 testContext.vertexBuffer = buffer.buffer;
704 bufferParameters.size = testContext.renderSize;
710 createVulkanBuffer(deviceInterface, testContext.device, testContext.allocator, bufferParameters, buffer, MemoryRequirement::HostVisible);
711 testContext.renderReadBuffer = buffer.allocation;
712 testContext.renderBuffer = buffer.buffer;
714 extent.width = testContext.renderDimension.x();
715 extent.height = testContext.renderDimension.y();
731 createVulkanImage(deviceInterface, testContext.device, testContext.allocator, imageParameters, image, MemoryRequirement::Any);
732 testContext.imageAllocation = image.allocation;
733 testContext.image = image.image;
740 createColorOnlyRenderPass(deviceInterface, testContext.device, renderPassParameters, testContext.renderPass);
759 viewport.width = (float)testContext.renderDimension.x();
760 viewport.height = (float)testContext.renderDimension.y();
766 scissor.extent.width = testContext.renderDimension.x();
767 scissor.extent.height = testContext.renderDimension.y();
845 layout = createPipelineLayout(deviceInterface, testContext.device, &pipelineLayoutState, DE_NULL);
863 pipelineState.renderPass = testContext.renderPass.get();
875 testContext.pipelineCache = createPipelineCache(deviceInterface, testContext.device, &cacheState);
876 testContext.pipeline = createGraphicsPipeline(deviceInterface, testContext.device, testContext.pipelineCache.get(), &pipelineState);
882 fbState.renderPass = testContext.renderPass.get();
885 fbState.width = (deUint32)testContext.renderDimension.x();
886 fbState.height = (deUint32)testContext.renderDimension.y();
889 testContext.framebuffer = createFramebuffer(deviceInterface, testContext.device, &fbState);
890 testContext.imageView = image.imageView;
895 inheritanceInfo.renderPass = testContext.renderPass.get();
897 inheritanceInfo.framebuffer = *testContext.framebuffer;
907 VK_CHECK(deviceInterface.beginCommandBuffer(testContext.cmdBuffer.get(), &commandBufRecordState));
909 deviceInterface.cmdPipelineBarrier( testContext.cmdBuffer.get(),
921 renderInfo.width = testContext.renderDimension.x();
922 renderInfo.height = testContext.renderDimension.y();
923 renderInfo.vertexBufferSize = testContext.numVertices;
924 renderInfo.vertexBuffer = testContext.vertexBuffer.get();
925 renderInfo.image = testContext.image.get();
926 renderInfo.commandBuffer = testContext.cmdBuffer.get();
927 renderInfo.renderPass = testContext.renderPass.get();
928 renderInfo.framebuffer = *testContext.framebuffer;
929 renderInfo.pipeline = *testContext.pipeline;
933 renderInfo.waitEvent = testContext.waitEvent;
934 renderInfo.event = testContext.event;
951 transferInfo.width = testContext.renderDimension.x();
952 transferInfo.height = testContext.renderDimension.y();
954 transferInfo.buffer = testContext.renderBuffer.get();
955 transferInfo.size = testContext.renderSize;
1002 TestContext testContext (deviceInterface, device, queueFamilyIdx, context.getBinaryCollection(), context.getDefaultAllocator());
1014 testContext.vertices = vertices;
1015 testContext.numVertices = DE_LENGTH_OF_ARRAY(vertices);
1016 testContext.renderDimension = tcu::IVec2(256, 256);
1017 testContext.renderSize = sizeof(deUint32) * testContext.renderDimension.x() * testContext.renderDimension.y();
1019 createCommandBuffer(deviceInterface, device, queueFamilyIdx, &testContext.cmdBuffer, &testContext.commandPool);
1020 generateWork(testContext);
1023 submitInfo.pCommandBuffers = &testContext.cmdBuffer.get();
1026 fenceStatus = deviceInterface.getFenceStatus(device, testContext.fences[0]);
1032 fenceStatus = deviceInterface.getFenceStatus(device, testContext.fences[1]);
1039 VK_CHECK(deviceInterface.queueSubmit(queue, 1, &submitInfo, testContext.fences[0]));
1042 waitStatus = deviceInterface.waitForFences(device, 1, &testContext.fences[0], true, 0u);
1051 waitStatus = deviceInterface.waitForFences(device, 1, &testContext.fences[0], true, DEFAULT_TIMEOUT);
1060 waitStatus = deviceInterface.waitForFences(device, 1, &testContext.fences[0], true, std::numeric_limits<deUint64>::max());
1068 waitStatus = deviceInterface.waitForFences(device, 1, &testContext.fences[1], true, 1);
1076 fenceStatus = deviceInterface.getFenceStatus(device, testContext.fences[0]);
1085 range.memory = testContext.renderReadBuffer->getMemory();
1087 range.size = testContext.renderSize;
1089 resultImage = testContext.renderReadBuffer->getHostPtr();
1095 testContext.renderDimension.x(),
1096 testContext.renderDimension.y(),
1120 TestContext testContext1 (deviceInterface, device.get(), queueFamilyIdx, context.getBinaryCollection(), allocator);
1121 TestContext testContext2 (deviceInterface, device.get(), queueFamilyIdx, context.getBinaryCollection(), allocator);
1237 TestContext testContext (deviceInterface, device, queueFamilyIdx, context.getBinaryCollection(), allocator);
1250 testContext.vertices = vertices1;
1251 testContext.numVertices = DE_LENGTH_OF_ARRAY(vertices1);
1252 testContext.renderDimension = tcu::IVec2(256, 256);
1253 testContext.waitEvent = true;
1254 testContext.event = event.get();
1255 testContext.renderSize = sizeof(deUint32) * testContext.renderDimension.x() * testContext.renderDimension.y();
1257 createCommandBuffer(deviceInterface, device, queueFamilyIdx, &testContext.cmdBuffer, &testContext.commandPool);
1258 generateWork(testContext);
1261 submitInfo.pCommandBuffers = &testContext.cmdBuffer.get();
1273 VK_CHECK(deviceInterface.queueSubmit(queue, 1, &submitInfo, testContext.fences[0]));
1275 testStatus = deviceInterface.waitForFences(device, 1, &testContext.fences[0], true, 10000000);
1291 testStatus = deviceInterface.waitForFences(device, 1, &testContext.fences[0], true, ~(0ull));
1300 range.memory = testContext.renderReadBuffer->getMemory();
1302 range.size = testContext.renderSize;
1304 resultImage = testContext.renderReadBuffer->getHostPtr();
1310 testContext.renderDimension.x(),
1311 testContext.renderDimension.y(),
1320 tcu::TestCaseGroup* createSmokeTests (tcu::TestContext& textCtx)