mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
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:
parent
2402232c90
commit
6d08f034ce
2 changed files with 2 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ namespace {
|
|||
case SpvStorageClassFunction:
|
||||
return module::argument::scalar;
|
||||
case SpvStorageClassUniformConstant:
|
||||
return module::argument::constant;
|
||||
return module::argument::global;
|
||||
case SpvStorageClassWorkgroup:
|
||||
return module::argument::local;
|
||||
case SpvStorageClassCrossWorkgroup:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue