Commit e96b3110 authored by Vinson Lee's avatar Vinson Lee
Browse files

i965: Fix printf format warnings on 32-bit builds.

parent 3db9d4b2
...@@ -44,16 +44,16 @@ void brw_wm_print_value( struct brw_wm_compile *c, ...@@ -44,16 +44,16 @@ void brw_wm_print_value( struct brw_wm_compile *c,
printf("undef"); printf("undef");
else if( value - c->vreg >= 0 && else if( value - c->vreg >= 0 &&
value - c->vreg < BRW_WM_MAX_VREG) value - c->vreg < BRW_WM_MAX_VREG)
printf("r%ld", value - c->vreg); printf("r%ld", (long) (value - c->vreg));
else if (value - c->creg >= 0 && else if (value - c->creg >= 0 &&
value - c->creg < BRW_WM_MAX_PARAM) value - c->creg < BRW_WM_MAX_PARAM)
printf("c%ld", value - c->creg); printf("c%ld", (long) (value - c->creg));
else if (value - c->payload.input_interp >= 0 && else if (value - c->payload.input_interp >= 0 &&
value - c->payload.input_interp < FRAG_ATTRIB_MAX) value - c->payload.input_interp < FRAG_ATTRIB_MAX)
printf("i%ld", value - c->payload.input_interp); printf("i%ld", (long) (value - c->payload.input_interp));
else if (value - c->payload.depth >= 0 && else if (value - c->payload.depth >= 0 &&
value - c->payload.depth < FRAG_ATTRIB_MAX) value - c->payload.depth < FRAG_ATTRIB_MAX)
printf("d%ld", value - c->payload.depth); printf("d%ld", (long) (value - c->payload.depth));
else else
printf("?"); printf("?");
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment