r300/compiler: fix translating the src negate bits in pair_translate
authorMarek Olšák <maraeo@gmail.com>
Sat, 12 Mar 2011 08:32:16 +0000 (09:32 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sat, 12 Mar 2011 08:39:46 +0000 (09:39 +0100)
commitd96305e4fcc67047e730cdc177bfa3da4307ff5a
treeb157b4da986b7bb565a5c262e8127e1b3f86f34b
parent1868d21c8ee1fdf775f3e3ddbb1c48fa89d5850c
r300/compiler: fix translating the src negate bits in pair_translate

(1, -_, ...) was converted to (-1, ...) because of the negation
in the second component.
Masking out the unused bits fixes this.

Piglit:
- glsl-fs-texture2d-branching

NOTE: This is a candidate for the 7.9 and 7.10 branches.
src/mesa/drivers/dri/r300/compiler/radeon_pair_translate.c