summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965/brw_state.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-10-24 11:53:43 +0100
committerKeith Whitwell <[email protected]>2009-10-24 11:53:43 +0100
commitd71af266dfe01953f2545708e16a8eb799113abb (patch)
tree1bbfd5092f646174d1e887e6dff8f9a9803cde4f /src/gallium/drivers/i965/brw_state.h
parentc93d2e4540606bfd878730351dc5b68dc6d3dd8f (diff)
i965g: first compiling file
Diffstat (limited to 'src/gallium/drivers/i965/brw_state.h')
-rw-r--r--src/gallium/drivers/i965/brw_state.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/i965/brw_state.h b/src/gallium/drivers/i965/brw_state.h
index a007d542d0b..b716097bfcd 100644
--- a/src/gallium/drivers/i965/brw_state.h
+++ b/src/gallium/drivers/i965/brw_state.h
@@ -34,11 +34,12 @@
#define BRW_STATE_H
#include "brw_context.h"
+#include "util/u_memory.h"
static inline void
brw_add_validated_bo(struct brw_context *brw, struct brw_winsys_buffer *bo)
{
- assert(brw->state.validated_bo_count < ARRAY_SIZE(brw->state.validated_bos));
+ assert(brw->state.validated_bo_count < Elements(brw->state.validated_bos));
if (bo != NULL) {
brw->sws->bo_reference(bo);