KhronosGroup / KhronosGroup/SPIRV-Tools
spirv-fuzz: consider using VariablePointers capability
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 709
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 28
Description
Some transformations would require using OpSelect to select between
two variables. However, this requires the VariablePointers capability.
Would adding this capability be sensible in some cases?
NOTE: This capability would also allow creating OpVariable
instructions that point to pointers. This might cause some
problems in the code in spirv-fuzz which assumes that pointers
always point to either a scalar or a composite.
Contributor guide
Research direction
Start by examining the spirv-fuzz transformations that would need OpSelect and the code assumptions around OpVariable pointer types. Determine whether enabling the VariablePointers capability is safe when pointers can point to pointers, and define the affected transformation behavior and tests before making a change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100