summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2008-05-27 12:59:46 +0200
committerJakob Bornecrantz <[email protected]>2008-05-27 13:28:47 +0200
commit9752ebd99e16646fed3c14712fc0af2c34c9e48f (patch)
tree19465d9a3db108599425db3e9b58f47f8b45d319 /src/gallium/auxiliary/draw
parenta08c574bfcf72c7f7ffbeb35c10347b491ef87fb (diff)
draw: Fix for EMIT_4UB case
Diffstat (limited to 'src/gallium/auxiliary/draw')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c
index 2f2e7195b3f..c6249b4b410 100644
--- a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c
+++ b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c
@@ -143,7 +143,10 @@ static void fse_prepare( struct draw_pt_middle_end *middle,
output_format = PIPE_FORMAT_R32_FLOAT;
emit_sz = 1 * sizeof(float);
vs_output = num_vs_outputs + 1;
-
+ break;
+ case EMIT_4UB:
+ output_format = PIPE_FORMAT_B8G8R8A8_UNORM;
+ emit_sz = 4 * sizeof(ubyte);
break;
default:
assert(0);