summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2008-06-13 17:22:11 +0200
committerMichal Krol <[email protected]>2008-06-14 09:34:02 +0200
commit64d854ebf7074f4a86bb9d45bb2e1003f86a86a1 (patch)
tree25777853e4c1b2aa69e33ff9a2ae6b7528464a21
parent8b11fa4d4496032246b33182b9285c1181d41f1f (diff)
util: Use pf_get_size().
-rw-r--r--src/gallium/auxiliary/util/u_blit.c2
1 files changed, 1 insertions, 1 deletions
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)