summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/radeon/radeon_state.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-03-09 01:55:42 +0000
committerJosé Fonseca <jfonseca@vmware.com>2010-03-12 12:00:27 +0000
commitc16d04bd2939154c0360f1ac51fe61a86e5dd9e5 (patch)
tree1a26c956ccd9041ee3dd56a809e3e486ea7dcdec /src/mesa/drivers/dri/radeon/radeon_state.c
parent50876ddaaff72a324ac45e255985e0f84e108594 (diff)
gallium: fix BGRA vertex color swizzles
The mapping for vertex_array_bgra: (gl -> st -> translate) GL_RGBA -> PIPE_FORMAT_R8G8B8A8 (RGBA) -> no swizzle (XYZW) GL_BGRA -> PIPE_FORMAT_A8R8G8B8 (ARGB) -> ZYXW (BGRA again??) Iẗ́'s pretty clear that PIPE_FORMAT_A8R8G8B8 here is wrong. This commit fixes the pipe format and removes obvious workarounds in util/translate. Tested with: softpipe, llvmpipe, r300g. Signed-off-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/mesa/drivers/dri/radeon/radeon_state.c')
0 files changed, 0 insertions, 0 deletions