mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
iris: move MAX defines to iris_batch.h
for SBA
This commit is contained in:
parent
7bfc8f7d7d
commit
ff5c886fb3
2 changed files with 9 additions and 9 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,15 @@
|
|||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
/* 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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue