diff options
Diffstat (limited to 'src/gallium/auxiliary/util/u_pack_color.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_pack_color.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gallium/auxiliary/util/u_pack_color.h b/src/gallium/auxiliary/util/u_pack_color.h index e0c9018..b882502 100644 --- a/src/gallium/auxiliary/util/u_pack_color.h +++ b/src/gallium/auxiliary/util/u_pack_color.h @@ -60,7 +60,7 @@ union util_color { /** * Pack ubyte R,G,B,A into dest pixel. */ -static INLINE void +static inline void util_pack_color_ub(ubyte r, ubyte g, ubyte b, ubyte a, enum pipe_format format, union util_color *uc) { @@ -161,7 +161,7 @@ util_pack_color_ub(ubyte r, ubyte g, ubyte b, ubyte a, /** * Unpack RGBA from a packed pixel, returning values as ubytes in [0,255]. */ -static INLINE void +static inline void util_unpack_color_ub(enum pipe_format format, union util_color *uc, ubyte *r, ubyte *g, ubyte *b, ubyte *a) { @@ -333,7 +333,7 @@ util_unpack_color_ub(enum pipe_format format, union util_color *uc, * This will not work (and might not really be useful with float input) * for pure integer formats (which lack the pack_rgba_float function). */ -static INLINE void +static inline void util_pack_color(const float rgba[4], enum pipe_format format, union util_color *uc) { ubyte r = 0; @@ -437,7 +437,7 @@ util_pack_color(const float rgba[4], enum pipe_format format, union util_color * /* Integer versions of util_pack_z and util_pack_z_stencil - useful for * constructing clear masks. */ -static INLINE uint32_t +static inline uint32_t util_pack_mask_z(enum pipe_format format, uint32_t z) { switch (format) { @@ -462,7 +462,7 @@ util_pack_mask_z(enum pipe_format format, uint32_t z) } -static INLINE uint64_t +static inline uint64_t util_pack64_mask_z(enum pipe_format format, uint32_t z) { switch (format) { @@ -474,7 +474,7 @@ util_pack64_mask_z(enum pipe_format format, uint32_t z) } -static INLINE uint32_t +static inline uint32_t util_pack_mask_z_stencil(enum pipe_format format, uint32_t z, uint8_t s) { uint32_t packed = util_pack_mask_z(format, z); @@ -497,7 +497,7 @@ util_pack_mask_z_stencil(enum pipe_format format, uint32_t z, uint8_t s) } -static INLINE uint64_t +static inline uint64_t util_pack64_mask_z_stencil(enum pipe_format format, uint32_t z, uint8_t s) { uint64_t packed; @@ -516,7 +516,7 @@ util_pack64_mask_z_stencil(enum pipe_format format, uint32_t z, uint8_t s) /** * Note: it's assumed that z is in [0,1] */ -static INLINE uint32_t +static inline uint32_t util_pack_z(enum pipe_format format, double z) { union fi fui; @@ -558,7 +558,7 @@ util_pack_z(enum pipe_format format, double z) } -static INLINE uint64_t +static inline uint64_t util_pack64_z(enum pipe_format format, double z) { union fi fui; @@ -580,7 +580,7 @@ util_pack64_z(enum pipe_format format, double z) * Pack Z and/or stencil values into a 32-bit value described by format. * Note: it's assumed that z is in [0,1] and s in [0,255] */ -static INLINE uint32_t +static inline uint32_t util_pack_z_stencil(enum pipe_format format, double z, uint8_t s) { uint32_t packed = util_pack_z(format, z); @@ -603,7 +603,7 @@ util_pack_z_stencil(enum pipe_format format, double z, uint8_t s) } -static INLINE uint64_t +static inline uint64_t util_pack64_z_stencil(enum pipe_format format, double z, uint8_t s) { uint64_t packed; @@ -624,7 +624,7 @@ util_pack64_z_stencil(enum pipe_format format, double z, uint8_t s) /** * Pack 4 ubytes into a 4-byte word */ -static INLINE unsigned +static inline unsigned pack_ub4(ubyte b0, ubyte b1, ubyte b2, ubyte b3) { return ((((unsigned int)b0) << 0) | @@ -637,7 +637,7 @@ pack_ub4(ubyte b0, ubyte b1, ubyte b2, ubyte b3) /** * Pack/convert 4 floats into one 4-byte word. */ -static INLINE unsigned +static inline unsigned pack_ui32_float4(float a, float b, float c, float d) { return pack_ub4( float_to_ubyte(a), |