aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarol Herbst <[email protected]>2019-12-02 17:03:36 +0100
committerKarol Herbst <[email protected]>2019-12-11 23:54:39 +0000
commitacc06589427d0e0224a878a0351ae478c7860aed (patch)
tree513bcad7e4bacc5ceb7bd79a99332ae2f6dbb30c
parentdba8bf116989402965a37b10bcb8ce83a1d4999c (diff)
clover/spirv: allow Int64 Atomics for supported devices
Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
-rw-r--r--src/gallium/state_trackers/clover/spirv/invocation.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/clover/spirv/invocation.cpp b/src/gallium/state_trackers/clover/spirv/invocation.cpp
index c368e430de5..01ced45c13b 100644
--- a/src/gallium/state_trackers/clover/spirv/invocation.cpp
+++ b/src/gallium/state_trackers/clover/spirv/invocation.cpp
@@ -410,6 +410,12 @@ namespace {
return false;
}
break;
+ case SpvCapabilityInt64Atomics:
+ if (!dev.has_int64_atomics()) {
+ r_log += "Capability 'Int64Atomics' is not supported.\n";
+ return false;
+ }
+ break;
default:
r_log += "Capability '" + std::to_string(capability) +
"' is not supported.\n";