util: Use pf_get_size().
authorMichal Krol <michal@tungstengraphics.com>
Fri, 13 Jun 2008 15:22:11 +0000 (17:22 +0200)
committerMichal Krol <michal@tungstengraphics.com>
Sat, 14 Jun 2008 07:34:02 +0000 (09:34 +0200)
src/gallium/auxiliary/util/u_blit.c

index 999a3e5..7b9415d 100644 (file)
@@ -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)