summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i915/i915_debug_fp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_debug_fp.c b/src/mesa/drivers/dri/i915/i915_debug_fp.c
index 9b4bc768f8a..3f099022640 100644
--- a/src/mesa/drivers/dri/i915/i915_debug_fp.c
+++ b/src/mesa/drivers/dri/i915/i915_debug_fp.c
@@ -299,12 +299,11 @@ print_dcl_op(GLuint opcode, const GLuint * program)
void
i915_disassemble_program(const GLuint * program, GLuint sz)
{
- GLuint size = program[0] & 0x1ff;
GLint i;
printf("\t\tBEGIN\n");
- assert(size + 2 == sz);
+ assert(program[0] & 0x1ff + 2 == sz);
program++;
for (i = 1; i < sz; i += 3, program += 3) {