llvm / llvm/llvm-project

[HLSL][SPIRV] SignedZeroInfNanPreserve capability should be used if shader is compiled with -Gis

Open
#177,497 1 comment 0 reactions 0 assignees View on GitHub
clang:HLSL:SPIRV HLSL
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Add SignedZeroInfNanPreserve capability to shaders if compiled with -Gis which was added to clang-dxc in #146448

See below for DXC behavior.
https://godbolt.org/z/eaK6YGe8q

Contributor guide

Open the contributing guide

Research direction

Start by tracing clang-dxc handling of the -Gis option and the SPIR-V capability emission path. Compare the generated output with the linked Godbolt example; done means shaders compiled with -Gis include SignedZeroInfNanPreserve while other compilations retain their existing behavior.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.