diff options
author | Eric Anholt <[email protected]> | 2019-09-19 11:03:35 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-09-27 13:34:28 -0700 |
commit | a6cc68106c033a31db2b84188e47e1badfcbcc41 (patch) | |
tree | 8c3aa721856f65eeff932d549f4b847cfcef040b /src/freedreno | |
parent | 7a4647ee392eff045015a0295f0b6d235d376804 (diff) |
turnip: Add a .editorconfig and .dir-locals.el
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 <[email protected]>
Diffstat (limited to 'src/freedreno')
-rw-r--r-- | src/freedreno/vulkan/.dir-locals.el | 8 | ||||
-rw-r--r-- | src/freedreno/vulkan/.editorconfig | 5 | ||||
-rw-r--r-- | src/freedreno/vulkan/tu_private.h | 1 |
3 files changed, 13 insertions, 1 deletions
diff --git a/src/freedreno/vulkan/.dir-locals.el b/src/freedreno/vulkan/.dir-locals.el new file mode 100644 index 00000000000..acbdb7b06a9 --- /dev/null +++ b/src/freedreno/vulkan/.dir-locals.el @@ -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 index 00000000000..bfbe26089df --- /dev/null +++ b/src/freedreno/vulkan/.editorconfig @@ -0,0 +1,5 @@ +[*.{c,h,cpp,hpp,cc,hh}] +indent_style = space +indent_size = 3 +tab_width = 8 +max_line_length = 78 diff --git a/src/freedreno/vulkan/tu_private.h b/src/freedreno/vulkan/tu_private.h index 918d22c7fd3..ee00befd976 100644 --- a/src/freedreno/vulkan/tu_private.h +++ b/src/freedreno/vulkan/tu_private.h @@ -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" |