diff --git a/src/gallium/drivers/i915/i915_debug_fp.c b/src/gallium/drivers/i915/i915_debug_fp.c index 2dd9df3ac15..cc3503ba6f9 100644 --- a/src/gallium/drivers/i915/i915_debug_fp.c +++ b/src/gallium/drivers/i915/i915_debug_fp.c @@ -319,6 +319,7 @@ i915_disassemble_program(const unsigned * program, unsigned sz) assert((program[0] & 0x1ff) + 2 == sz); + program++; for (i = 1; i < sz; i += 3, program += 3) { unsigned opcode = program[0] & (0x1f << 24); diff --git a/src/gallium/drivers/i915/i915_fpc_translate.c b/src/gallium/drivers/i915/i915_fpc_translate.c index 85415b45167..37dcf70786b 100644 --- a/src/gallium/drivers/i915/i915_fpc_translate.c +++ b/src/gallium/drivers/i915/i915_fpc_translate.c @@ -1234,6 +1234,7 @@ i915_translate_fragment_program( struct i915_context *i915, i915_optimize_free(i_tokens); #if 0 + /* XXX: The disasm wants the concatenation of the decl and program. */ i915_disassemble_program(fs->program, fs->program_len); #endif }