Skip to content

CTS Fails tests when returning XR_ERROR_FEATURE_UNSUPPORTED in CreateSwapchain for flag "XR_SWAPCHAIN_CREATE_STATIC_IMAGE_BIT" #147

Description

@JetSimon

Hello,

In the OpenXR specificiation it says we can return XR_ERROR_FEATURE_UNSUPPORTED if a createFlag is unsupported. However when I return XR_ERROR_FEATURE_UNSUPPORTED I get this error from the testing suite when running any test to do with swapchains.

   <testcase classname="global" name="MaxLayers-noninteractive" time="0.000" status="run">
      <error message="{Unknown expression after the reported line}">
FAILED:
  {Unknown expression after the reported line}
XrResult failure [XR_ERROR_FEATURE_UNSUPPORTED]
    Origin: xrCreateSwapchain(m_session, &amp;createInfo, &amp;swapchain)
    Source: D:\HololabsGitRepos\OpenXR-CTS\src\conformance\framework\composition_utils.cpp:621
at D:\HololabsGitRepos\OpenXR-CTS\src\conformance\framework\conformance_utils.cpp(137)
      </error>
    </testcase>

This is how I am checking for the flag, which I believe is correct:

if (createInfo->createFlags & XR_SWAPCHAIN_CREATE_STATIC_IMAGE_BIT) {
	return XR_ERROR_FEATURE_UNSUPPORTED;
}

I'm not sure why I cannot pass the test if I report this feature unsupported?

As per the spec:

A runtime may implement any of these, but is not required to. A runtime must return XR_ERROR_FEATURE_UNSUPPORTED from xrCreateSwapchain if an XrSwapchainCreateFlags bit is requested but not implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    synced to gitlabSynced to internal Khronos gitlab

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions