diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-10-10 17:50:31 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-10-10 17:50:31 -0600 |
commit | 3f226d4bafcc7b174ee42e4b5a2a4fb3756758ad (patch) | |
tree | 45eb510df386fb8ea1f3676a823b8eb3ac474806 /src/mesa | |
parent | 178beffd35c886894c5d213bbe3bdde9fa47e863 (diff) |
added SSCALED cases in fetch_attrib4()
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/pipe/draw/draw_vertex_fetch.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/pipe/draw/draw_vertex_fetch.c b/src/mesa/pipe/draw/draw_vertex_fetch.c index bc37e18c34..de1cd06da6 100644 --- a/src/mesa/pipe/draw/draw_vertex_fetch.c +++ b/src/mesa/pipe/draw/draw_vertex_fetch.c @@ -62,6 +62,20 @@ fetch_attrib4(const void *ptr, unsigned format, float attrib[4]) case PIPE_FORMAT_R32_FLOAT: attrib[0] = ((float *) ptr)[0]; break; + + case PIPE_FORMAT_R32G32B32A32_SSCALED: + attrib[3] = ((int *) ptr)[3]; + /* fall-through */ + case PIPE_FORMAT_R32G32B32_SSCALED: + attrib[2] = ((int *) ptr)[2]; + /* fall-through */ + case PIPE_FORMAT_R32G32_SSCALED: + attrib[1] = ((int *) ptr)[1]; + /* fall-through */ + case PIPE_FORMAT_R32_SSCALED: + attrib[0] = ((int *) ptr)[0]; + break; + default: assert(0); } |