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

Author: Corbin Simpson <[email protected]>
Date:   Fri Mar  6 19:07:13 2009 -0800

r300-gallium: Fix masking on vertex formats.

Gah, what a simple yet terrible mistake.

---

 src/gallium/drivers/r300/r300_state_derived.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_state_derived.c 
b/src/gallium/drivers/r300/r300_state_derived.c
index 548a840..b7fb36f 100644
--- a/src/gallium/drivers/r300/r300_state_derived.c
+++ b/src/gallium/drivers/r300/r300_state_derived.c
@@ -181,11 +181,11 @@ static void r300_update_vertex_layout(struct 
r300_context* r300)
             temp = translate_vertex_data_type(vinfo.attrib[i].emit) |
                 (tab[i] << R300_DST_VEC_LOC_SHIFT) | R300_SIGNED;
             if (i & 1) {
-                r300->vertex_info.vap_prog_stream_cntl[i >> 1] &= 0xffff0000;
+                r300->vertex_info.vap_prog_stream_cntl[i >> 1] &= 0xffff;
                 r300->vertex_info.vap_prog_stream_cntl[i >> 1] |=
                         temp << 16;
             } else {
-                r300->vertex_info.vap_prog_stream_cntl[i >> 1] &= 0xffff;
+                r300->vertex_info.vap_prog_stream_cntl[i >> 1] &= 0xffff0000;
                 r300->vertex_info.vap_prog_stream_cntl[i >> 1] |=
                     temp;
             }

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

Reply via email to