summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-05-01 18:49:52 +0100
committerKeith Whitwell <[email protected]>2008-05-01 20:49:44 +0100
commit26bcef898af4e6dfd578783ed33818a2bd38b06d (patch)
treedfc8d6611e9d66d6472929526dd684ee973b902a /src
parentf30285e99c1e158971855b12331df3da38555004 (diff)
i915: fix warning
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/i915simple/i915_debug_fp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/i915simple/i915_debug_fp.c b/src/gallium/drivers/i915simple/i915_debug_fp.c
index 37a3508fe14..c024a051a58 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) {