Mesa (master): tgsi/ureg: Fix ureg_emit_src().

Michał Król michal at kemper.freedesktop.org
Thu Dec 3 00:14:01 PST 2009


Module: Mesa
Branch: master
Commit: cdb6849fc1fa0c6e360c89a6388dc8bf19a746ca
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cdb6849fc1fa0c6e360c89a6388dc8bf19a746ca

Author: Michal Krol <michal at vmware.com>
Date:   Thu Dec  3 09:13:52 2009 +0100

tgsi/ureg: Fix ureg_emit_src().

---

 src/gallium/auxiliary/tgsi/tgsi_ureg.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
index fb4b5fa..8f0b984 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_ureg.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
@@ -554,9 +554,7 @@ void
 ureg_emit_src( struct ureg_program *ureg,
                struct ureg_src src )
 {
-   unsigned size = (1 + 
-                    (src.Absolute ? 1 : 0) +
-                    (src.Indirect ? 1 : 0));
+   unsigned size = 1 + (src.Indirect ? 1 : 0);
 
    union tgsi_any_token *out = get_tokens( ureg, DOMAIN_INSN, size );
    unsigned n = 0;



More information about the mesa-commit mailing list