Module: Mesa
Branch: master
Commit: a09b7f7f150d1687a614fd59cf09ec5e3c3a13fd
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a09b7f7f150d1687a614fd59cf09ec5e3c3a13fd

Author: Andrew Randrianasulu <[email protected]>
Date:   Mon Jul 11 22:05:13 2011 +0200

dri/nouveau: nv10: fix vertex format for GL_UNSIGNED_BYTE

Broken accidentally in f4efc256fd90beaff86321e4c6ce00f9be55092d,
the switch to rnn headers.

NV10TCL_VTXFMT_TYPE_BYTE_RGBA became U8_UNORM but B8G8R8A8_UNORM
was used instead.

---

 src/mesa/drivers/dri/nouveau/nv10_render.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/nouveau/nv10_render.c 
b/src/mesa/drivers/dri/nouveau/nv10_render.c
index 20fb447..6134650 100644
--- a/src/mesa/drivers/dri/nouveau/nv10_render.c
+++ b/src/mesa/drivers/dri/nouveau/nv10_render.c
@@ -99,7 +99,7 @@ get_hw_format(int type)
        case GL_UNSIGNED_SHORT:
                return NV10_3D_VTXBUF_FMT_TYPE_V16_SNORM;
        case GL_UNSIGNED_BYTE:
-               return NV10_3D_VTXBUF_FMT_TYPE_B8G8R8A8_UNORM;
+               return NV10_3D_VTXBUF_FMT_TYPE_U8_UNORM;
        default:
                assert(0);
        }

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to