summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-02-24 11:03:58 -0700
committerBrian Paul <brianp@vmware.com>2010-02-24 11:03:58 -0700
commit5d8aae55f29fe35ec3d514b54b05b6c6fc8bebe2 (patch)
treeb7140f2c33b6f594311fd6974c0432d19c76d8b6 /src/mesa
parent5bc62895e294ea461e8487bac1aa84c6cc4f6809 (diff)
st/mesa: use util_format_get_blocksize()
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_cb_drawpixels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_drawpixels.c b/src/mesa/state_tracker/st_cb_drawpixels.c
index e9aee6b205..ba28a224e8 100644
--- a/src/mesa/state_tracker/st_cb_drawpixels.c
+++ b/src/mesa/state_tracker/st_cb_drawpixels.c
@@ -319,7 +319,7 @@ make_texture(struct st_context *st,
pipeFormat = st_mesa_format_to_pipe_format(mformat);
assert(pipeFormat);
- cpp = st_sizeof_format(pipeFormat);
+ cpp = util_format_get_blocksize(pipeFormat);
pixels = _mesa_map_pbo_source(ctx, unpack, pixels);
if (!pixels)