Mesa (gallium-llvmpipe): llvmpipe: Update texture block from format.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Fri Aug 21 07:02:44 UTC 2009
Module: Mesa
Branch: gallium-llvmpipe
Commit: 6c05a13f8fabbc7008f77394a5e4558a7bf78895
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6c05a13f8fabbc7008f77394a5e4558a7bf78895
Author: José Fonseca <jfonseca at vmware.com>
Date: Fri Aug 21 07:45:32 2009 +0100
llvmpipe: Update texture block from format.
---
src/gallium/drivers/llvmpipe/lp_texture.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c
index 0fad1fc..1c1e015 100644
--- a/src/gallium/drivers/llvmpipe/lp_texture.c
+++ b/src/gallium/drivers/llvmpipe/lp_texture.c
@@ -68,6 +68,8 @@ llvmpipe_texture_layout(struct pipe_screen *screen,
unsigned buffer_size = 0;
+ pf_get_block(lpt->base.format, &lpt->base.block);
+
for (level = 0; level <= pt->last_level; level++) {
pt->width[level] = width;
pt->height[level] = height;
@@ -101,6 +103,7 @@ llvmpipe_displaytarget_layout(struct pipe_screen *screen,
unsigned usage = (PIPE_BUFFER_USAGE_CPU_READ_WRITE |
PIPE_BUFFER_USAGE_GPU_READ_WRITE);
+ pf_get_block(lpt->base.format, &lpt->base.block);
lpt->base.nblocksx[0] = pf_get_nblocksx(&lpt->base.block, lpt->base.width[0]);
lpt->base.nblocksy[0] = pf_get_nblocksy(&lpt->base.block, lpt->base.height[0]);
More information about the mesa-commit
mailing list