diff options
author | Michal Krol <[email protected]> | 2009-12-03 11:58:36 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-12-03 11:58:36 +0100 |
commit | f5bd93fae2e4f46665eb1f09ca64cb39ff2b8a79 (patch) | |
tree | 2389d913bcd736d2d17a64189550b00ef68e1033 /src/gallium/include/pipe | |
parent | cceeab39ea541b1be1521114316d660a77769c2a (diff) |
Move pf_get_component_bits() to u_format auxiliary module.
Diffstat (limited to 'src/gallium/include/pipe')
-rw-r--r-- | src/gallium/include/pipe/p_format.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/gallium/include/pipe/p_format.h b/src/gallium/include/pipe/p_format.h index 5fd073c95fd..ec2961e8d7c 100644 --- a/src/gallium/include/pipe/p_format.h +++ b/src/gallium/include/pipe/p_format.h @@ -394,33 +394,6 @@ enum pipe_format { */ extern const char *pf_name( enum pipe_format format ); -/** - * Return bits for a particular component. - * \param comp component index, starting at 0 - */ -static INLINE uint pf_get_component_bits( enum pipe_format format, uint comp ) -{ - uint size; - - if (pf_swizzle_x(format) == comp) { - size = pf_size_x(format); - } - else if (pf_swizzle_y(format) == comp) { - size = pf_size_y(format); - } - else if (pf_swizzle_z(format) == comp) { - size = pf_size_z(format); - } - else if (pf_swizzle_w(format) == comp) { - size = pf_size_w(format); - } - else { - size = 0; - } - if (pf_layout( format ) == PIPE_FORMAT_LAYOUT_RGBAZS) - return size << pf_exp2( format ); - return size << (pf_mixed_scale8( format ) * 3); -} /** * Describe accurately the pixel format. |