gallium: include u_format.h for util_format_is_supported
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sat, 16 Apr 2011 20:15:52 +0000 (22:15 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sat, 16 Apr 2011 23:15:52 +0000 (01:15 +0200)
commitb5dfc38eea8a4b497574ca791452c11fa4163c8a
treee28f6cb2fd089445f37ef19cb6fe240020610c97
parent25a7f662145f56ad15dbdf3da203a8a85594276f
gallium: include u_format.h for util_format_is_supported

Without it gcc complains:
nv50_screen.c: In function ‘nv50_screen_is_format_supported’:
nv50_screen.c:48: warning: implicit declaration of function ‘util_format_is_supported’

and handles it wrongly - util_format_is_supported returns boolean, which is typedef'ed
to uchar, but function without prototype is assumed to return int.

For me nv50_screen_is_format_supported was returning true for float formats without
--enable-texture-float...
src/gallium/drivers/i915/i915_screen.c
src/gallium/drivers/i965/brw_screen.c
src/gallium/drivers/nv50/nv50_screen.c
src/gallium/drivers/nvc0/nvc0_screen.c
src/gallium/drivers/nvfx/nvfx_screen.c
src/gallium/drivers/r600/r600_pipe.c