mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
tnl: Fix zeroing of the 3ub part of a 3ub+1ub attrib pair in SSE.
Bug #16520.
This commit is contained in:
parent
b66495a0d9
commit
3b9bc821e1
1 changed files with 3 additions and 1 deletions
|
|
@ -354,6 +354,7 @@ static GLboolean build_vertex_emit( struct x86_program *p )
|
|||
struct x86_reg temp = x86_make_reg(file_XMM, 0);
|
||||
struct x86_reg vp0 = x86_make_reg(file_XMM, 1);
|
||||
struct x86_reg vp1 = x86_make_reg(file_XMM, 2);
|
||||
struct x86_reg temp2 = x86_make_reg(file_XMM, 3);
|
||||
GLubyte *fixup, *label;
|
||||
|
||||
/* Push a few regs?
|
||||
|
|
@ -526,7 +527,8 @@ static GLboolean build_vertex_emit( struct x86_program *p )
|
|||
sse_shufps(&p->func, temp, temp, SHUF(W,X,Y,Z));
|
||||
|
||||
get_src_ptr(p, srcECX, vtxESI, &a[1]);
|
||||
emit_load(p, temp, 1, x86_deref(srcECX), a[1].inputsize);
|
||||
emit_load(p, temp2, 1, x86_deref(srcECX), a[1].inputsize);
|
||||
sse_movss(&p->func, temp, temp2);
|
||||
update_src_ptr(p, srcECX, vtxESI, &a[1]);
|
||||
|
||||
/* Rearrange and possibly do BGR conversion:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue