mesa: fix emit_clamp() so that we don't use an output register as temporary
authorBrian <brian.paul@tungstengraphics.com>
Fri, 14 Mar 2008 19:59:32 +0000 (13:59 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 14 Mar 2008 19:59:32 +0000 (13:59 -0600)
commit868193d54efd6b181fdd3bacf6c88d5ef5a6bc4c
treef8b2ee64d0f8e6636980f0e9edba4ad76e89fa3b
parent42c279a03b4d3529efc0d552c37ace2c82306822
mesa: fix emit_clamp() so that we don't use an output register as temporary

IR_CLAMP is decomposed into OPCODE_MIN+OPCODE_MAX.  Allocate a temporary
register for the intermediate value so we don't inadvertantly use an output
register (which are write-only on some GPUs).
src/mesa/shader/slang/slang_emit.c