mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 22:20:14 +01:00
i965: clip: Modify brw_clip_tri_alloc_regs() to use the VUE map.
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
62b0c8561e
commit
2bc421845e
1 changed files with 5 additions and 2 deletions
|
|
@ -74,9 +74,12 @@ void brw_clip_tri_alloc_regs( struct brw_clip_compile *c,
|
|||
i += c->nr_regs;
|
||||
}
|
||||
|
||||
if (c->nr_attrs & 1) {
|
||||
if (c->vue_map.num_slots % 2) {
|
||||
/* The VUE has an odd number of slots so the last register is only half
|
||||
* used. Fill the second half with zero.
|
||||
*/
|
||||
for (j = 0; j < 3; j++) {
|
||||
GLuint delta = c->offset[c->idx_to_attr[c->nr_attrs - 1]] + ATTR_SIZE;
|
||||
GLuint delta = c->vue_map.num_slots * ATTR_SIZE;
|
||||
|
||||
brw_MOV(&c->func, byte_offset(c->reg.vertex[j], delta), brw_imm_f(0));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue