mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
mesa: Remove duplicate code.
This commit is contained in:
parent
de35bf5bdc
commit
b850453497
1 changed files with 1 additions and 18 deletions
|
|
@ -49,24 +49,7 @@ format_bits(
|
|||
pipe_format_rgbazs_t info,
|
||||
GLuint comp )
|
||||
{
|
||||
GLuint size;
|
||||
|
||||
if (pf_swizzle_x(info) == comp) {
|
||||
size = pf_size_x(info);
|
||||
}
|
||||
else if (pf_swizzle_y(info) == comp) {
|
||||
size = pf_size_y(info);
|
||||
}
|
||||
else if (pf_swizzle_z(info) == comp) {
|
||||
size = pf_size_z(info);
|
||||
}
|
||||
else if (pf_swizzle_w(info) == comp) {
|
||||
size = pf_size_w(info);
|
||||
}
|
||||
else {
|
||||
size = 0;
|
||||
}
|
||||
return size << (pf_exp8(info) * 3);
|
||||
return pf_get_component_bits( (enum pipe_format) info, comp );
|
||||
}
|
||||
|
||||
static GLuint
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue