mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
r300-gallium: Fix masking on vertex formats.
Gah, what a simple yet terrible mistake.
This commit is contained in:
parent
95476635c5
commit
6ebd6c898a
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue