Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

VK_EXT_depth_clamp_control is incorrectly implemented #182

@CrossVR

Description

@CrossVR

The current implementation of VK_EXT_depth_clamp_control implements it as an override for the viewport depth range in all viewports:

https://github.com/GPUOpen-Drivers/xgl/blob/dev/icd/api/vk_cmdbuffer.cpp#L12586

Due to an oversight this does currently pass conformance, but does not match the specification of the extension:

It can be used to set a smaller or larger clamping range than the viewport depth range without affecting the depth mapping of the viewport transform.

To implement the extension correctly a new depth clamping mode needs to be added to the PAL.

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