tools/null_state_gen: Limit the total state len to 4096 bytes

Currently our kernel side buffer object is only one page.
Limit the amount of dwords to 1024 to enforce this.

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
This commit is contained in:
Mika Kuoppala 2014-10-09 18:39:05 +03:00
parent b498d81f15
commit a1f847cba9

View File

@ -34,7 +34,7 @@
#include <stdint.h>
#define MAX_RELOCS 64
#define MAX_ITEMS 4096
#define MAX_ITEMS 1024
#define MAX_STRLEN 256
#define ALIGN(x, y) (((x) + (y)-1) & ~((y)-1))