From: Keith Whitwell Date: Thu, 1 May 2008 17:49:52 +0000 (+0100) Subject: i915: fix warning X-Git-Tag: 062012170305~17580^2~390^2~1540^2~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26bcef898af4e6dfd578783ed33818a2bd38b06d;p=profile%2Fivi%2Fmesa.git i915: fix warning --- diff --git a/src/gallium/drivers/i915simple/i915_debug_fp.c b/src/gallium/drivers/i915simple/i915_debug_fp.c index 37a3508..c024a05 100644 --- a/src/gallium/drivers/i915simple/i915_debug_fp.c +++ b/src/gallium/drivers/i915simple/i915_debug_fp.c @@ -333,12 +333,11 @@ void i915_disassemble_program(struct debug_stream *stream, const unsigned * program, unsigned sz) { - unsigned size = program[0] & 0x1ff; unsigned i; PRINTF(stream, "\t\tBEGIN\n"); - assert(size + 2 == sz); + assert((program[0] & 0x1ff) + 2 == sz); program++; for (i = 1; i < sz; i += 3, program += 3) {