diff options
author | Mike Kaplinksiy <mike.kaplinskiy@gmail.com> | 2009-05-28 01:20:37 -0400 |
---|---|---|
committer | Jakob Bornecrantz <wallbraker@gmail.com> | 2009-05-27 22:53:59 -0700 |
commit | 713b636a0e0356266b714548886b66864b830fff (patch) | |
tree | a088d06f450bec76c972debd768a3b816319bb0b | |
parent | 5be48307d55120311b13433eaa9af09d07e233e0 (diff) |
draw: Fix assertion failure at fetch_emit_prepare
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_fetch_emit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c b/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c index 6b7d02a19b..e7fe6b3b76 100644 --- a/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c +++ b/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c @@ -130,6 +130,10 @@ static void fetch_emit_prepare( struct draw_pt_middle_end *middle, unsigned output_format; switch (vinfo->attrib[i].emit) { + case EMIT_4UB: + output_format = PIPE_FORMAT_R8G8B8A8_UNORM; + emit_sz = 4 * sizeof(unsigned char); + break; case EMIT_4F: output_format = PIPE_FORMAT_R32G32B32A32_FLOAT; emit_sz = 4 * sizeof(float); @@ -153,6 +157,8 @@ static void fetch_emit_prepare( struct draw_pt_middle_end *middle, output_format = PIPE_FORMAT_R32_FLOAT; emit_sz = 1 * sizeof(float); break; + case EMIT_OMIT: + continue; default: assert(0); output_format = PIPE_FORMAT_NONE; |