Mesa (master): st/mesa: use util_format_get_blocksize()
Brian Paul
brianp at kemper.freedesktop.org
Wed Feb 24 18:35:02 UTC 2010
Module: Mesa
Branch: master
Commit: 5d8aae55f29fe35ec3d514b54b05b6c6fc8bebe2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5d8aae55f29fe35ec3d514b54b05b6c6fc8bebe2
Author: Brian Paul <brianp at vmware.com>
Date: Wed Feb 24 11:03:58 2010 -0700
st/mesa: use util_format_get_blocksize()
---
src/mesa/state_tracker/st_cb_drawpixels.c | 2 +-
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 e9aee6b..ba28a22 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)
More information about the mesa-commit
mailing list