i965: Remember to pack the constant blend color as floats into the batch
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 24 Feb 2011 12:59:52 +0000 (12:59 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 24 Feb 2011 12:59:52 +0000 (12:59 +0000)
Fixes regression from aac120977d1ead319141d48d65c9bba626ec03b8.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=34597
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/i965/brw_cc.c

index b7048ecb39b63c89bdacf0e628177199dac18751..412d82ab3ca90cbfb46311efab8518fcaeb67e8a 100644 (file)
@@ -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();
 }