From: Keith Whitwell Date: Thu, 1 May 2008 14:31:17 +0000 (+0100) Subject: rtasm: assert stack is fully popped in return X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=727257f32002544658219d2e0163993c1cbc5644;p=mesa.git rtasm: assert stack is fully popped in return --- diff --git a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c index d7e22305573..40f6f973d69 100644 --- a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c +++ b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c @@ -495,6 +495,7 @@ void x86_dec( struct x86_function *p, void x86_ret( struct x86_function *p ) { DUMP(); + assert(p->stack_offset == 0); emit_1ub(p, 0xc3); }