mesa: fix emit_clamp() so that we don't use an output register as temporary
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 14 Mar 2008 19:50:01 +0000 (13:50 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 14 Mar 2008 19:50:01 +0000 (13:50 -0600)
commit7dc449d406a88fbb92aedfacfa3869176ba2cb31
tree6d492cfcede356aa60556818a8cc4228c8128895
parent14150bc8567cf424fc3a635a33f05213505681be
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