diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2008-06-12 16:01:05 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-06-12 16:01:05 -0600 |
commit | 08f1b8ac709105d42ec34f8b8a81421e3b0fbc81 (patch) | |
tree | 56273a585cb4cbc7f9a4cd1b87c6c61607dce997 /src/gallium/auxiliary/draw/draw_vs_aos.h | |
parent | b19e8f720bb2f4d360f5497b64901fc48321f172 (diff) | |
download | external_mesa3d-08f1b8ac709105d42ec34f8b8a81421e3b0fbc81.zip external_mesa3d-08f1b8ac709105d42ec34f8b8a81421e3b0fbc81.tar.gz external_mesa3d-08f1b8ac709105d42ec34f8b8a81421e3b0fbc81.tar.bz2 |
gallium: fix SSE codegen for instructions that use both a CONSTANT and IMMEDIATE
Fixes codegen for instructions like MUL dst, CONST[0], IMM[0]; the two operands
would up getting aliased in the x86/sse code.
Fixes glean/vertProg1/fogparams test.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_vs_aos.h')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_vs_aos.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vs_aos.h b/src/gallium/auxiliary/draw/draw_vs_aos.h index 66944a4..64e021f 100644 --- a/src/gallium/auxiliary/draw/draw_vs_aos.h +++ b/src/gallium/auxiliary/draw/draw_vs_aos.h @@ -145,7 +145,7 @@ struct aos_compilation { unsigned last_used; } xmm[8]; - unsigned ebp; /* one of X86_* */ + unsigned x86_reg[2]; /* one of X86_* */ boolean input_fetched[PIPE_MAX_ATTRIBS]; unsigned output_last_write[PIPE_MAX_ATTRIBS]; @@ -213,6 +213,7 @@ do { \ #define X86_ATTRIBS 3 struct x86_reg aos_get_x86( struct aos_compilation *cp, + unsigned which_reg, unsigned value ); |