Mesa (gallium-0.1): ureg: respect Negate flag in src regs
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Thu Aug 27 16:06:13 UTC 2009
Module: Mesa
Branch: gallium-0.1
Commit: e6e78fad7e9f091bf0f0a8e55801175e7e1dd999
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e6e78fad7e9f091bf0f0a8e55801175e7e1dd999
Author: Keith Whitwell <keithw at vmware.com>
Date: Thu Aug 27 15:07:02 2009 +0100
ureg: respect Negate flag in src regs
---
src/gallium/auxiliary/tgsi/tgsi_ureg.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
index 11d9aaa..e7e592c 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_ureg.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
@@ -456,11 +456,14 @@ ureg_emit_src( struct ureg_program *ureg,
out[n].src.SwizzleW = src.SwizzleW;
out[n].src.Indirect = src.Indirect;
out[n].src.Index = src.Index;
+ out[n].src.Negate = src.Negate;
n++;
if (src.Absolute) {
+ out[0].src.Negate = 0;
out[n].value = 0;
out[n].src_ext_mod.Absolute = 1;
+ out[n].src_ext_mod.Negate = src.Negate;
n++;
}
More information about the mesa-commit
mailing list