turnip: Add a .editorconfig and .dir-locals.el
authorEric Anholt <eric@anholt.net>
Thu, 19 Sep 2019 18:03:35 +0000 (11:03 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 27 Sep 2019 20:34:28 +0000 (13:34 -0700)
I was inheriting the one from src/freedreno with funny tabs, while
this driver is written with normal Mesa 3-space indents.
Unfortunately I have to add both files, because I use emacs and emacs
prefers .dir-locals to .editorconfig :(

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/freedreno/vulkan/.dir-locals.el [new file with mode: 0644]
src/freedreno/vulkan/.editorconfig [new file with mode: 0644]
src/freedreno/vulkan/tu_private.h

diff --git a/src/freedreno/vulkan/.dir-locals.el b/src/freedreno/vulkan/.dir-locals.el
new file mode 100644 (file)
index 0000000..acbdb7b
--- /dev/null
@@ -0,0 +1,8 @@
+((prog-mode
+  (indent-tabs-mode . nil)
+  (tab-width . 8)
+  (c-basic-offset . 3)
+  (c-file-style . "k&r")
+  (fill-column . 78)
+  )
+ )
diff --git a/src/freedreno/vulkan/.editorconfig b/src/freedreno/vulkan/.editorconfig
new file mode 100644 (file)
index 0000000..bfbe260
--- /dev/null
@@ -0,0 +1,5 @@
+[*.{c,h,cpp,hpp,cc,hh}]
+indent_style = space
+indent_size = 3
+tab_width = 8
+max_line_length = 78
index 918d22c7fd315f8a72cd587ad6d933cc41358c92..ee00befd976e3a6fb471d910390ea08bc621fe53 100644 (file)
@@ -44,7 +44,6 @@
 #endif
 
 #include "c11/threads.h"
-#include "compiler/shader_enums.h"
 #include "main/macros.h"
 #include "util/list.h"
 #include "util/macros.h"