From: Kenneth Graunke Date: Sun, 21 Jan 2018 08:16:15 +0000 (-0800) Subject: iris: move MAX defines to iris_batch.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff5c886fb3e974af3f5b57dddfec40218b086a70;p=mesa.git iris: move MAX defines to iris_batch.h for SBA --- diff --git a/src/gallium/drivers/iris/iris_batch.c b/src/gallium/drivers/iris/iris_batch.c index 07770438acd..0354c4990d7 100644 --- a/src/gallium/drivers/iris/iris_batch.c +++ b/src/gallium/drivers/iris/iris_batch.c @@ -48,15 +48,6 @@ #define BATCH_SZ (20 * 1024) #define STATE_SZ (18 * 1024) -/* The kernel assumes batchbuffers are smaller than 256kB. */ -#define MAX_BATCH_SIZE (256 * 1024) - -/* 3DSTATE_BINDING_TABLE_POINTERS has a U16 offset from Surface State Base - * Address, which means that we can't put binding tables beyond 64kB. This - * effectively limits the maximum statebuffer size to 64kB. - */ -#define MAX_STATE_SIZE (64 * 1024) - static void iris_batch_reset(struct iris_batch *batch); diff --git a/src/gallium/drivers/iris/iris_batch.h b/src/gallium/drivers/iris/iris_batch.h index 2074b058061..47da23baeb1 100644 --- a/src/gallium/drivers/iris/iris_batch.h +++ b/src/gallium/drivers/iris/iris_batch.h @@ -27,6 +27,15 @@ #include #include +/* The kernel assumes batchbuffers are smaller than 256kB. */ +#define MAX_BATCH_SIZE (256 * 1024) + +/* 3DSTATE_BINDING_TABLE_POINTERS has a U16 offset from Surface State Base + * Address, which means that we can't put binding tables beyond 64kB. This + * effectively limits the maximum statebuffer size to 64kB. + */ +#define MAX_STATE_SIZE (64 * 1024) + struct iris_address { struct iris_bo *bo; unsigned reloc_flags;