Just like we already do in the llvm backend. The current constant buffer code
seems fundamentally flawed and right now we are thinking on how we want to
reimplement all of that.
But until that happens, just treat is as global memory and go on.
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
spirv_options.caps.int16 = true;
spirv_options.caps.int64 = true;
spirv_options.caps.kernel = true;
+ spirv_options.constant_as_global = true;
module m;
// We only insert one section.
case SpvStorageClassFunction:
return module::argument::scalar;
case SpvStorageClassUniformConstant:
- return module::argument::constant;
+ return module::argument::global;
case SpvStorageClassWorkgroup:
return module::argument::local;
case SpvStorageClassCrossWorkgroup: