r600g: add src negation support
authorJerome Glisse <jglisse@redhat.com>
Wed, 11 Aug 2010 17:49:06 +0000 (13:49 -0400)
committerJerome Glisse <jglisse@redhat.com>
Wed, 11 Aug 2010 17:50:19 +0000 (13:50 -0400)
Should fix few glBitmap cases.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
src/gallium/drivers/r600/r600_shader.c

index ca65bff24c1bdedf6aeb939544424f630e32e3db..cbeb69221cc6a30860bc013ba1878af0ad8f7129 100644 (file)
@@ -537,6 +537,7 @@ static int tgsi_src(struct r600_shader_ctx *ctx,
        if (tgsi_src->Register.File == TGSI_FILE_IMMEDIATE) {
                r600_src->sel = 0;
        }
+       r600_src->neg = tgsi_src->Register.Negate;
        r600_src->sel += ctx->file_offset[tgsi_src->Register.File];
        return 0;
 }