summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-05-28 16:36:45 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-05-28 17:06:18 +0100
commit648da5158e5f418bf859aee6aa4532b6899b0d94 (patch)
treef0e02aaffcbdf8d9a1a1a36f2cf42b6808d84143 /src/gallium
parent364f75d9dbc2b8e19c884b9cc74676ab6cbee60d (diff)
rtasm: special case for [ebp]
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/rtasm/rtasm_x86sse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
index 2415b0156b..672d2ff554 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
+++ b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
@@ -328,7 +328,7 @@ struct x86_reg x86_make_disp( struct x86_reg reg,
else
reg.disp += disp;
- if (reg.disp == 0)
+ if (reg.disp == 0 && reg.idx != reg_BP)
reg.mod = mod_INDIRECT;
else if (reg.disp <= 127 && reg.disp >= -128)
reg.mod = mod_DISP8;