KhronosGroup / KhronosGroup/SPIRV-Tools

validator: memory semantics bit value of 1 is invalid

Open
#1,255 0 comments 0 reactions 0 assignees View on GitHub
component:validation enhancement
Dominant language
C++
Stars
1.4k
Forks
709
Avg merge
1d 22h
Merged PRs (30d)
28

Description

Followup to https://github.com/KhronosGroup/SPIRV-Tools/pull/1234#pullrequestreview-92751374

The 1 bit is a placeholder corresponding to C11's memory_order_consume. That's not valid to use in SPIR-V.

Contributor guide

Open the contributing guide

Research direction

Start in the SPIR-V validator's memory-semantics validation and trace how the bit value 1 is currently handled. Check the related pull request review for context, then verify that value 1 is rejected as invalid while valid memory-semantics values remain accepted.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.