st/vega: Fix a typo in EXTENDED_BLENDER_OVER_FUNC.
authorChia-I Wu <olv@lunarg.com>
Thu, 25 Nov 2010 05:18:47 +0000 (13:18 +0800)
committerChia-I Wu <olv@lunarg.com>
Thu, 25 Nov 2010 05:34:24 +0000 (13:34 +0800)
The typo was introduced by commit
231d5457b275c1d9bbeff14165cf3da33dda176b.

src/gallium/state_trackers/vega/asm_fill.h

index 27773467fa8090ac18ca49b15e7446d00a02198d..9a06982c6a6c284e5a99b4776d0d1b7d632cdf3b 100644 (file)
@@ -235,7 +235,7 @@ image_stencil( struct ureg_program *ureg,
    ureg_SUB(ureg, temp[3],                                              \
             ureg_scalar(constant[1], TGSI_SWIZZLE_Y),                   \
             ureg_scalar(ureg_src(temp[1]), TGSI_SWIZZLE_W));            \
-   ureg_SUB(ureg, temp[3],                                              \
+   ureg_SUB(ureg, temp[4],                                              \
             ureg_scalar(constant[1], TGSI_SWIZZLE_Y),                   \
             ureg_scalar(ureg_src(temp[0]), TGSI_SWIZZLE_W));            \
    ureg_MUL(ureg, temp[3], ureg_src(temp[0]), ureg_src(temp[3]));       \