[SPIR-V] required execution mode for FragStencilRefEXT is missing

Open
#9,038 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
compilers

Research direction

Start with the TODO at tools/clang/test/CodeGenSPIRV/semantic.stencil-ref.ps.hlsl line 7, which marks the missing check. Then find where the SPIR-V emitter under tools/clang/lib/SPIRV adds execution modes for pixel shaders and see how FragStencilRefEXT is handled there. Done means the emitted module includes the StencilRefReplacingEXT execution mode and the test checks for it.

Written by the indexing model from the issue text.

Description

bug needs-triage spirv

Description
https://registry.khronos.org/VulkanSC/specs/1.0-extensions/man/html/FragStencilRefEXT.html
FragStencilRefEXT is used but the required execution mode StencilRefReplacingEXT is missing.

See this TODO
tools/clang/test/CodeGenSPIRV/semantic.stencil-ref.ps.hlsl#L7

Steps to Reproduce
https://godbolt.org/z/baq5GGW65

Actual Behavior
Missing required StencilRefReplacingEXT execution mode

Environment
N/A

Dominant language
C++
Stars
3.7k
Forks
926
Avg merge
3d 22h
Merged PRs (30d)
45

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/DirectXShaderCompiler

All issues in microsoft/DirectXShaderCompiler

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.