KhronosGroup / SPIRV-Registry

SPIR-V specs
110 stars 76 forks source link

Allow more atomic instructions to use untyped pointer as an operand (SPV_KHR_untyped_pointers extension) #292

Open vmaksimo opened 2 weeks ago

vmaksimo commented 2 weeks ago

Should OpAtomicFAddEXT, OpAtomicFMinEXT, and OpAtomicFMaxEXT atomic instructions be also allowed to be used with SPV_KHR_untyped_pointers extension? The main point is that these instructions do have a return type which can be used to interpret untyped pointer argument. This will require modifications to SPV_EXT_shader_atomic_float_min_max, SPV_EXT_shader_atomic_float_add, and its 16-bit version.

vmaksimo commented 6 days ago

One more, possibly related - should OpAtomicFlagTestAndSet and OpAtomicFlagClear also be allowed to use untyped pointers for Pointer operand?