Skip to content

Apparently missing test with push constants with statically unused push constants in pipeline #177

Open
@Themaister

Description

@Themaister

We ran into a case on Mali where:

  • A pipeline layout declared a push constant range.
  • The pipeline using said layout statically does not access push constants.
  • vkCmdPushConstant is not called.
  • On vkCmdDraw* the driver crashes on CPU.

Just pushing something worked around the crash.

The wording from spec:

For each push constant that is statically used by the VkPipeline bound to the pipeline bind
point used by this command, a push constant value must have been set for the same
pipeline bind point, with a VkPipelineLayout that is compatible for push constants, with
the VkPipelineLayout used to create the current VkPipeline, as described in Pipeline Layout
Compatibility

Statically used is key here. I suspect there is no CTS test to cover this particular edge case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions