summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_quad_blend.c
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-08-18 11:41:01 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-08-29 09:21:34 +0100
commitefab431684bb17459073f6a2e96044cb2ebd2524 (patch)
tree7800a9ccaefaf6dd1937cfa8ceecf565125c0c1f /src/gallium/drivers/llvmpipe/lp_quad_blend.c
parentee066eaf6d0dd3c771dc3e37390f3665e747af2a (diff)
llvmpipe: Tile in SoA format identical to the blender function output.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_quad_blend.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_quad_blend.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_quad_blend.c b/src/gallium/drivers/llvmpipe/lp_quad_blend.c
index 2b060574ae..4312753eef 100644
--- a/src/gallium/drivers/llvmpipe/lp_quad_blend.c
+++ b/src/gallium/drivers/llvmpipe/lp_quad_blend.c
@@ -41,6 +41,7 @@
#include "lp_quad.h"
#include "lp_surface.h"
#include "lp_tile_cache.h"
+#include "lp_tile_soa.h"
#include "lp_quad_pipe.h"
@@ -163,7 +164,7 @@ blend_run(struct quad_stage *qs,
int y = ity + (j >> 1);
for (i = 0; i < 4; i++) {
src[i][4*k + j] = float_to_ubyte(quad->output.color[cbuf][i][j]);
- dst[i][4*k + j] = tile->data.color[i][y][x];
+ dst[i][4*k + j] = TILE_PIXEL(tile->data.color, x, y, i);
}
}
}
@@ -193,7 +194,7 @@ blend_run(struct quad_stage *qs,
int x = itx + (j & 1);
int y = ity + (j >> 1);
for (i = 0; i < 4; i++) { /* loop over color chans */
- tile->data.color[i][y][x] = src[i][4*k + j];
+ TILE_PIXEL(tile->data.color, x, y, i) = src[i][4*k + j];
}
}
}