intel: Silence many "intel_batchbuffer.h:97:39: warning: comparison between signed...
authorIan Romanick <ian.d.romanick@intel.com>
Sun, 21 Aug 2011 23:41:22 +0000 (16:41 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 9 Sep 2011 19:01:50 +0000 (12:01 -0700)
commit2a6a1c4bc291b76674f62bd989d1487f10268ef0
tree26de3f0804cf9c38816d1f35df01124043bffac7
parentf0dd21ac88c0ee0a7dd96012881deeb3172974b6
intel: Silence many "intel_batchbuffer.h:97:39: warning: comparison between signed and unsigned integer expressions"

v2: Remove the assertion in intel_batchbuffer_space:

   assert((intel->batch.state_batch_offset - intel->batch.reserved_space)
  >= intel->batch.used*4);

After reviewing all the places where this is called, I'm (fairly)
comfortable that this assertion was redundant.  Having the assertion
adds ~20KiB to a driver build:

   text    data     bss     dec     hex filename
 903173   26392    1552  931117   e352d i965_dri.so
 924093   26392    1552  952037   e86e5 i965_dri.so

Based on feedback from Eric Anholt.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/intel/intel_batchbuffer.h