aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/shader_enums.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-09-19 10:54:08 -0700
committerEric Anholt <[email protected]>2019-09-27 13:34:28 -0700
commit7a4647ee392eff045015a0295f0b6d235d376804 (patch)
tree66c31b44250639dc598483c235518945a6f5e992 /src/compiler/shader_enums.h
parent6c858b9a915b54d127a64ab817f111a82716a037 (diff)
shader_enums: Move MAX_DRAW_BUFFERS to this file.
We include shader_enums.h from freedreno's compiler for both GL and Vulkan, and the main/config.h include resulted in polluting the namespace with things like MAX_VIEWPORTS that other Vulkan drivers use as their driver-specific maximums. Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/compiler/shader_enums.h')
-rw-r--r--src/compiler/shader_enums.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler/shader_enums.h b/src/compiler/shader_enums.h
index 7eac07b5c11..0704719c229 100644
--- a/src/compiler/shader_enums.h
+++ b/src/compiler/shader_enums.h
@@ -27,7 +27,9 @@
#define SHADER_ENUMS_H
#include <stdbool.h>
-#include "mesa/main/config.h"
+
+/* Project-wide (GL and Vulkan) maximum. */
+#define MAX_DRAW_BUFFERS 8
#ifdef __cplusplus
extern "C" {