mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 16:10:09 +01:00
i965: Fix compile warnings on 64-bit Linux.
format ‘%d’ expects type ‘int’, but argument 2 has type ‘long int’
This commit is contained in:
parent
edd180f032
commit
9b3362932d
1 changed files with 4 additions and 4 deletions
|
|
@ -44,16 +44,16 @@ void brw_wm_print_value( struct brw_wm_compile *c,
|
|||
printf("undef");
|
||||
else if( value - c->vreg >= 0 &&
|
||||
value - c->vreg < BRW_WM_MAX_VREG)
|
||||
printf("r%d", value - c->vreg);
|
||||
printf("r%ld", value - c->vreg);
|
||||
else if (value - c->creg >= 0 &&
|
||||
value - c->creg < BRW_WM_MAX_PARAM)
|
||||
printf("c%d", value - c->creg);
|
||||
printf("c%ld", value - c->creg);
|
||||
else if (value - c->payload.input_interp >= 0 &&
|
||||
value - c->payload.input_interp < FRAG_ATTRIB_MAX)
|
||||
printf("i%d", value - c->payload.input_interp);
|
||||
printf("i%ld", value - c->payload.input_interp);
|
||||
else if (value - c->payload.depth >= 0 &&
|
||||
value - c->payload.depth < FRAG_ATTRIB_MAX)
|
||||
printf("d%d", value - c->payload.depth);
|
||||
printf("d%ld", value - c->payload.depth);
|
||||
else
|
||||
printf("?");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue