From: Keith Whitwell Date: Wed, 28 May 2008 15:36:45 +0000 (+0100) Subject: rtasm: special case for [ebp] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=648da5158e5f418bf859aee6aa4532b6899b0d94;p=mesa.git rtasm: special case for [ebp] --- diff --git a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c index 2415b0156ba..672d2ff5547 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;