summaryrefslogtreecommitdiffstats
path: root/src/broadcom/compiler/v3d_compiler.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-01-18 15:36:15 -0800
committerEric Anholt <[email protected]>2019-01-27 08:30:03 -0800
commit3e743d8cd86c09f68d840604c9df52e0499af64f (patch)
treeec11fa44b3d524ef06137c775b3dbf7868326504 /src/broadcom/compiler/v3d_compiler.h
parentfe6a21c8671b7b3deea281cb0b9617f3ce7fc5c5 (diff)
v3d: Avoid duplicating limits defines between gallium and v3d core.
We don't want to pull the compiler into every include in the gallium driver, so just make a new little header to store the limits.
Diffstat (limited to 'src/broadcom/compiler/v3d_compiler.h')
-rw-r--r--src/broadcom/compiler/v3d_compiler.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/broadcom/compiler/v3d_compiler.h b/src/broadcom/compiler/v3d_compiler.h
index a613146d927..127b04136d1 100644
--- a/src/broadcom/compiler/v3d_compiler.h
+++ b/src/broadcom/compiler/v3d_compiler.h
@@ -34,6 +34,7 @@
#include "util/macros.h"
#include "common/v3d_debug.h"
#include "common/v3d_device_info.h"
+#include "common/v3d_limits.h"
#include "compiler/nir/nir.h"
#include "util/list.h"
#include "util/u_math.h"
@@ -41,11 +42,6 @@
#include "qpu/qpu_instr.h"
#include "pipe/p_state.h"
-#define V3D_MAX_TEXTURE_SAMPLERS 32
-#define V3D_MAX_SAMPLES 4
-#define V3D_MAX_FS_INPUTS 64
-#define V3D_MAX_VS_INPUTS 64
-
struct nir_builder;
struct v3d_fs_inputs {