Mesa (master): util: Handle the remaining formats in pipe_put_tile_rgba().
MichaŠKról
michal at kemper.freedesktop.org
Fri Jan 15 18:00:36 UTC 2010
Module: Mesa
Branch: master
Commit: 1433a2d9358dc869d8849deaa0ab7bf7d285b34e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1433a2d9358dc869d8849deaa0ab7bf7d285b34e
Author: Michal Krol <michal at vmware.com>
Date: Fri Jan 15 17:42:38 2010 +0100
util: Handle the remaining formats in pipe_put_tile_rgba().
---
src/gallium/auxiliary/util/u_tile.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_tile.c b/src/gallium/auxiliary/util/u_tile.c
index 1ba82bb..f9936eb 100644
--- a/src/gallium/auxiliary/util/u_tile.c
+++ b/src/gallium/auxiliary/util/u_tile.c
@@ -1357,7 +1357,10 @@ pipe_put_tile_rgba(struct pipe_transfer *pt,
/*z24s8_put_tile_rgba((unsigned *) packed, w, h, p, src_stride);*/
break;
default:
- debug_printf("%s: unsupported format %s\n", __FUNCTION__, pf_name(format));
+ util_format_write_4f(format,
+ p, src_stride * sizeof(float),
+ packed, util_format_get_stride(format, w),
+ 0, 0, w, h);
}
pipe_put_tile_raw(pt, x, y, w, h, packed, 0);
More information about the mesa-commit
mailing list