i965g: first compiling file
[mesa.git] / src / gallium / drivers / i965 / brw_state.h
index a007d542d0bef144eb9da7984ff795625d1d131d..b716097bfcd06bf4cd235336412eb819a3ba3dbb 100644 (file)
 #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);