Lines Matching defs:context
414 tcu::TestStatus testPrimitivesInside (Context& context, const VkPrimitiveTopology topology)
427 requireFeatures(context.getInstanceInterface(), context.getPhysicalDevice(), FEATURE_GEOMETRY_SHADER);
437 requireFeatures(context.getInstanceInterface(), context.getPhysicalDevice(), FEATURE_GEOMETRY_SHADER);
452 shaders.push_back(VulkanShader(VK_SHADER_STAGE_VERTEX_BIT, context.getBinaryCollection().get("vert")));
453 shaders.push_back(VulkanShader(VK_SHADER_STAGE_FRAGMENT_BIT, context.getBinaryCollection().get("frag")));
455 tcu::TestLog& log = context.getTestContext().getLog();
475 PipelineState pipelineState (context.getDeviceProperties().limits.subPixelPrecisionBits);
479 VulkanDrawContext drawContext (context, framebufferState);
492 tcu::TestStatus testPrimitivesOutside (Context& context, const VkPrimitiveTopology topology)
500 requireFeatures(context.getInstanceInterface(), context.getPhysicalDevice(), FEATURE_GEOMETRY_SHADER);
507 shaders.push_back(VulkanShader(VK_SHADER_STAGE_VERTEX_BIT, context.getBinaryCollection().get("vert")));
508 shaders.push_back(VulkanShader(VK_SHADER_STAGE_FRAGMENT_BIT, context.getBinaryCollection().get("frag")));
510 tcu::TestLog& log = context.getTestContext().getLog();
531 PipelineState pipelineState (context.getDeviceProperties().limits.subPixelPrecisionBits);
535 VulkanDrawContext drawContext (context, framebufferState);
549 tcu::TestStatus testPrimitivesDepthClamp (Context& context, const VkPrimitiveTopology topology)
551 requireFeatures(context.getInstanceInterface(), context.getPhysicalDevice(), FEATURE_DEPTH_CLAMP);
554 shaders.push_back(VulkanShader(VK_SHADER_STAGE_VERTEX_BIT, context.getBinaryCollection().get("vert")));
555 shaders.push_back(VulkanShader(VK_SHADER_STAGE_FRAGMENT_BIT, context.getBinaryCollection().get("frag")));
560 tcu::TestLog& log = context.getTestContext().getLog();
590 requireFeatures(context.getInstanceInterface(), context.getPhysicalDevice(), FEATURE_GEOMETRY_SHADER);
602 requireFeatures(context.getInstanceInterface(), context.getPhysicalDevice(), FEATURE_GEOMETRY_SHADER);
621 PipelineState pipelineState (context.getDeviceProperties().limits.subPixelPrecisionBits);
626 VulkanDrawContext drawContext (context, framebufferState);
640 tcu::TestStatus testPrimitivesDepthClip (Context& context, const VkPrimitiveTopology topology)
642 if (!context.getDepthClipEnableFeaturesEXT().depthClipEnable)
646 shaders.push_back(VulkanShader(VK_SHADER_STAGE_VERTEX_BIT, context.getBinaryCollection().get("vert")));
647 shaders.push_back(VulkanShader(VK_SHADER_STAGE_FRAGMENT_BIT, context.getBinaryCollection().get("frag")));
652 tcu::TestLog& log = context.getTestContext().getLog();
682 requireFeatures(context.getInstanceInterface(), context.getPhysicalDevice(), FEATURE_GEOMETRY_SHADER);
694 requireFeatures(context.getInstanceInterface(), context.getPhysicalDevice(), FEATURE_GEOMETRY_SHADER);
715 PipelineState pipelineState (context.getDeviceProperties().limits.subPixelPrecisionBits);
722 VulkanDrawContext drawContext(context, framebufferState);
733 if (context.getTestContext().getCommandLine().isSubProcess())
742 if (getPhysicalDeviceFeatures(context.getInstanceInterface(), context.getPhysicalDevice()).depthClamp)
750 PipelineState pipelineState (context.getDeviceProperties().limits.subPixelPrecisionBits);
757 VulkanDrawContext drawContext(context, framebufferState);
777 tcu::TestStatus testLargePoints (Context& context)
779 requireFeatures(context.getInstanceInterface(), context.getPhysicalDevice(), FEATURE_LARGE_POINTS);
783 if (context.isDeviceFunctionalitySupported("VK_KHR_maintenance2"))
785 VkPointClippingBehavior clippingBehavior = getClippingBehavior(context.getInstanceInterface(), context.getPhysicalDevice());
800 shaders.push_back(VulkanShader(VK_SHADER_STAGE_VERTEX_BIT, context.getBinaryCollection().get("vert")));
801 shaders.push_back(VulkanShader(VK_SHADER_STAGE_FRAGMENT_BIT, context.getBinaryCollection().get("frag")));
818 tcu::TestLog& log = context.getTestContext().getLog();
823 PipelineState pipelineState (context.getDeviceProperties().limits.subPixelPrecisionBits);
827 VulkanDrawContext drawContext(context, framebufferState);
888 void shadeFragments (rr::FragmentPacket* packets, const int numPackets, const rr::FragmentShadingContext& context) const
894 const float depth = rr::readVarying<float>(packets[packetNdx], context, 0, fragNdx).z();
895 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, tcu::Vec4(1.0f, depth, 0.0f, 1.0f));
901 tcu::TestStatus testWideLines (Context& context, const LineOrientation lineOrientation)
903 requireFeatures(context.getInstanceInterface(), context.getPhysicalDevice(), FEATURE_WIDE_LINES);
906 shaders.push_back(VulkanShader(VK_SHADER_STAGE_VERTEX_BIT, context.getBinaryCollection().get("vert")));
907 shaders.push_back(VulkanShader(VK_SHADER_STAGE_FRAGMENT_BIT, context.getBinaryCollection().get("frag")));
944 const VkPhysicalDeviceLimits limits = getPhysicalDeviceProperties(context.getInstanceInterface(), context.getPhysicalDevice()).limits;
948 tcu::TestLog& log = context.getTestContext().getLog();
955 PipelineState pipelineState (context.getDeviceProperties().limits.subPixelPrecisionBits);
959 VulkanDrawContext drawContext(context, framebufferState);
1377 tcu::TestStatus testClipDistance (Context& context, const CaseDefinition caseDef)
1381 const InstanceInterface& vki = context.getInstanceInterface();
1382 const VkPhysicalDevice physDevice = context.getPhysicalDevice();
1409 shaders.push_back(VulkanShader(VK_SHADER_STAGE_VERTEX_BIT, context.getBinaryCollection().get("vert")));
1410 shaders.push_back(VulkanShader(VK_SHADER_STAGE_FRAGMENT_BIT, context.getBinaryCollection().get("frag")));
1413 shaders.push_back(VulkanShader(VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT, context.getBinaryCollection().get("tesc")));
1414 shaders.push_back(VulkanShader(VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT, context.getBinaryCollection().get("tese")));
1417 shaders.push_back(VulkanShader(VK_SHADER_STAGE_GEOMETRY_BIT, context.getBinaryCollection().get("geom")));
1438 tcu::TestLog& log = context.getTestContext().getLog();
1445 PipelineState pipelineState (context.getDeviceProperties().limits.subPixelPrecisionBits);
1451 VulkanDrawContext drawContext (context, framebufferState);
1519 tcu::TestStatus testComplementarity (Context& context, const int numClipDistances)
1523 const InstanceInterface& vki = context.getInstanceInterface();
1524 const VkPhysicalDevice physDevice = context.getPhysicalDevice();
1530 shaders.push_back(VulkanShader(VK_SHADER_STAGE_VERTEX_BIT, context.getBinaryCollection().get("vert")));
1531 shaders.push_back(VulkanShader(VK_SHADER_STAGE_FRAGMENT_BIT, context.getBinaryCollection().get("frag")));
1571 tcu::TestLog& log = context.getTestContext().getLog();
1578 PipelineState pipelineState (context.getDeviceProperties().limits.subPixelPrecisionBits);
1583 VulkanDrawContext drawContext (context, framebufferState);
1597 void checkSupport(Context& context)
1599 const InstanceInterface& vki = context.getInstanceInterface();
1600 const VkPhysicalDevice physDevice = context.getPhysicalDevice();
1638 tcu::TestStatus testCullDistance(Context& context)
1642 VulkanShader(VK_SHADER_STAGE_VERTEX_BIT, context.getBinaryCollection().get("vert")),
1643 VulkanShader(VK_SHADER_STAGE_FRAGMENT_BIT, context.getBinaryCollection().get("frag"))
1655 PipelineState pipelineState (context.getDeviceProperties().limits.subPixelPrecisionBits);
1657 VulkanDrawContext drawContext (context, framebufferState);
1674 void checkTopologySupport(Context& context, const VkPrimitiveTopology topology)
1678 context.isDeviceFunctionalitySupported("VK_KHR_portability_subset") &&
1679 !context.getPortabilitySubsetFeatures().triangleFans)
1684 DE_UNREF(context);