summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2019-09-26 19:34:31 -0400
committerMarek Olšák <marek.olsak@amd.com>2019-10-10 15:49:18 -0400
commit7fc59197937cceb5670b36f5304d942c26be3f18 (patch)
tree721e52ef7527137495f0e53c140184c89a8293e2
parente5209e6a95d50b5b9f9fe282f87e8e424ccdd6d6 (diff)
tgsi_to_nir: add #ifdef header guards
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
-rw-r--r--src/gallium/auxiliary/nir/tgsi_to_nir.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.h b/src/gallium/auxiliary/nir/tgsi_to_nir.h
index 551ee917c8a..666fdf5b1ea 100644
--- a/src/gallium/auxiliary/nir/tgsi_to_nir.h
+++ b/src/gallium/auxiliary/nir/tgsi_to_nir.h
@@ -21,6 +21,9 @@
* IN THE SOFTWARE.
*/
+#ifndef TGSI_TO_NIR_H
+#define TGSI_TO_NIR_H
+
#include "compiler/nir/nir.h"
#include "pipe/p_screen.h"
@@ -31,3 +34,5 @@ tgsi_to_nir(const void *tgsi_tokens,
struct nir_shader *
tgsi_to_nir_noscreen(const void *tgsi_tokens,
const nir_shader_compiler_options *options);
+
+#endif