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.
This commit is contained in:
Eric Anholt
2019-01-18 15:36:15 -08:00
parent fe6a21c867
commit 3e743d8cd8
9 changed files with 52 additions and 17 deletions

View File

@@ -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 {