Mesa (master): i965: Remember to pack the constant blend color as floats into the batch
Chris Wilson
ickle at kemper.freedesktop.org
Thu Feb 24 13:01:04 UTC 2011
Module: Mesa
Branch: master
Commit: f19439940c43aa9d937716c6f1ee70cc26799e08
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f19439940c43aa9d937716c6f1ee70cc26799e08
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Thu Feb 24 12:59:52 2011 +0000
i965: Remember to pack the constant blend color as floats into the batch
Fixes regression from aac120977d1ead319141d48d65c9bba626ec03b8.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=34597
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
src/mesa/drivers/dri/i965/brw_cc.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_cc.c b/src/mesa/drivers/dri/i965/brw_cc.c
index b7048ec..412d82a 100644
--- a/src/mesa/drivers/dri/i965/brw_cc.c
+++ b/src/mesa/drivers/dri/i965/brw_cc.c
@@ -238,10 +238,10 @@ static void upload_blend_constant_color(struct brw_context *brw)
BEGIN_BATCH(5);
OUT_BATCH(_3DSTATE_BLEND_CONSTANT_COLOR << 16 | (5-2));
- OUT_BATCH(ctx->Color.BlendColor[0]);
- OUT_BATCH(ctx->Color.BlendColor[1]);
- OUT_BATCH(ctx->Color.BlendColor[2]);
- OUT_BATCH(ctx->Color.BlendColor[3]);
+ OUT_BATCH_F(ctx->Color.BlendColor[0]);
+ OUT_BATCH_F(ctx->Color.BlendColor[1]);
+ OUT_BATCH_F(ctx->Color.BlendColor[2]);
+ OUT_BATCH_F(ctx->Color.BlendColor[3]);
CACHED_BATCH();
}
More information about the mesa-commit
mailing list