Skip to content

[SPIR-V] does not take -Gis (IEEE strict) argument into account #3331

Closed

Description

The -Gis command line argument should effectively mark all variables behave as if they had precise HLSL modifier in them (that's what #2861 seems to be doing in DXIL output).

But SPIR-V output seems to generate completely identical result no matter if -Gis is present or not. Only actually spelling out precise on variables makes it generate the NoContraction SPIR-V decorations.

Activity

  1. ehsannas commented on Dec 29, 2020

    @ehsannas
    Contributor

    Thanks for reporting Aras Pranckevičius (@aras-p). I think we have missed to implement this command line option for the SPIR-V backend.

  2. changed the title [-]SPIR-V does not take -Gis (IEEE strict) argument into account[/-] [+][SPIR-V] does not take -Gis (IEEE strict) argument into account[/+] on Dec 29, 2020
  3. added
    spirv
    on Dec 29, 2020
  4. Jasper-Bekkers commented on Jun 28, 2022

    @Jasper-Bekkers

    Now with #4529 merged in, I was wondering if this issue went up in priority? To have have sane floating point behavior we rely on this for our DXIL codepath, but would also love to rely on this for our SPIRV codepath. Having this makes a world of difference to us in terms of having to debug odd floating point issues. On the CPU side we got rid of relying of fastmath style behavior since we started using Rust and it's been a breath of fresh air.

  5. sudonatalie commented on Jun 28, 2022

    @sudonatalie
    Collaborator

    #4529 was just part of some general error messaging improvements and cleanup following issue triage, so implementing -Gis is still not currently on our roadmap of priorities for the near future. It should be supported by the SPIR-V backend though so we would be happy to review any PRs that address this, and provide any help with implementation questions if someone in the community is interested in contributing it sooner.

  6. added a commit that references this issue on Jul 30, 2024
    7ddd83a
  7. moved this from For Google to Triaged in HLSL Triageon Jul 30, 2024
  8. added a commit that references this issue on Aug 1, 2024
    4fabd7a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    spirv

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions