From: Michal Krol Date: Fri, 13 Jun 2008 15:22:11 +0000 (+0200) Subject: util: Use pf_get_size(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64d854ebf7074f4a86bb9d45bb2e1003f86a86a1;p=mesa.git util: Use pf_get_size(). --- diff --git a/src/gallium/auxiliary/util/u_blit.c b/src/gallium/auxiliary/util/u_blit.c index 999a3e50995..7b9415d49ae 100644 --- a/src/gallium/auxiliary/util/u_blit.c +++ b/src/gallium/auxiliary/util/u_blit.c @@ -281,7 +281,7 @@ util_blit_pixels(struct blit_state *ctx, texTemp.height[0] = srcH; texTemp.depth[0] = 1; texTemp.compressed = 0; - texTemp.cpp = pf_get_bits(src->format) / 8; + texTemp.cpp = pf_get_size(src->format); tex = screen->texture_create(screen, &texTemp); if (!tex)