summaryrefslogtreecommitdiff
path: root/src/amd/vulkan/radv_util.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-10-07 09:16:09 +1000
committerDave Airlie <airlied@redhat.com>2016-10-07 09:16:09 +1000
commitf4e499ec79147f4172f3669ae9dafd941aaeeb65 (patch)
tree4e082d4d950ffd0a676a8131179ca0e7ce94d99f /src/amd/vulkan/radv_util.h
parent28ecd3eac24ce41b8a855a50f366f1985d1dc934 (diff)
downloadmesa-f4e499ec79147f4172f3669ae9dafd941aaeeb65.tar.gz
radv: add initial non-conformant radv vulkan driver
This squashes all the radv development up until now into one for merging. History can be found: https://github.com/airlied/mesa/tree/semi-interesting This requires llvm 3.9 and is in no way considered a conformant vulkan implementation. It can run a number of vulkan applications, and supports all GPUs using the amdgpu kernel driver. Thanks to Intel for providing anv and spirv->nir, and Emil Velikov for reviewing build integration. Parts of this are: Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Acked-by: Edward O'Callaghan <funfunctor@folklore1984.net> Authors: Bas Nieuwenhuizen and Dave Airlie Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/amd/vulkan/radv_util.h')
-rw-r--r--src/amd/vulkan/radv_util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_util.h b/src/amd/vulkan/radv_util.h
new file mode 100644
index 00000000000..57a4c95adb6
--- /dev/null
+++ b/src/amd/vulkan/radv_util.h
@@ -0,0 +1,9 @@
+#pragma once
+
+#ifdef HAVE___BUILTIN_POPCOUNT
+#define util_bitcount(i) __builtin_popcount(i)
+#else
+extern unsigned int
+util_bitcount(unsigned int n);
+#endif
+