From: Chris Wilson Date: Thu, 24 Feb 2011 12:59:52 +0000 (+0000) Subject: i965: Remember to pack the constant blend color as floats into the batch X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f19439940c43aa9d937716c6f1ee70cc26799e08;p=mesa.git 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 --- diff --git a/src/mesa/drivers/dri/i965/brw_cc.c b/src/mesa/drivers/dri/i965/brw_cc.c index b7048ecb39b..412d82ab3ca 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(); }