clover/nir: treat UniformConstant as global memory
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>
This commit is contained in:

committed by
Karol Herbst

parent
2402232c90
commit
6d08f034ce
@@ -68,6 +68,7 @@ module clover::nir::spirv_to_nir(const module &mod, const device &dev,
|
||||
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.
|
||||
|
Reference in New Issue
Block a user