gallium: adapt util code to blend changes
authorRoland Scheidegger <sroland@vmware.com>
Thu, 21 Jan 2010 18:56:29 +0000 (19:56 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 21 Jan 2010 18:56:29 +0000 (19:56 +0100)
src/gallium/auxiliary/util/u_blit.c
src/gallium/auxiliary/util/u_blitter.c
src/gallium/auxiliary/util/u_gen_mipmap.c

index 9725890bd4ada4c16a3f21b4a2d3d4a4c51ac31d..ebc9d3415fc3cac4b036463363722d0960431383 100644 (file)
@@ -92,7 +92,7 @@ util_create_blit(struct pipe_context *pipe, struct cso_context *cso)
 
    /* disabled blending/masking */
    memset(&ctx->blend, 0, sizeof(ctx->blend));
-   ctx->blend.colormask = PIPE_MASK_RGBA;
+   ctx->blend.rt[0].colormask = PIPE_MASK_RGBA;
 
    /* no-op depth/stencil/alpha */
    memset(&ctx->depthstencil, 0, sizeof(ctx->depthstencil));
index 249a0375fc54f76c8312a3b5306eef5d3fd1a9c0..935e11c5d85145a5a856d73568fc569acf0e32c8 100644 (file)
@@ -125,7 +125,7 @@ struct blitter_context *util_blitter_create(struct pipe_context *pipe)
    memset(&blend, 0, sizeof(blend));
    ctx->blend_keep_color = pipe->create_blend_state(pipe, &blend);
 
-   blend.colormask = PIPE_MASK_RGBA;
+   blend.rt[0].colormask = PIPE_MASK_RGBA;
    ctx->blend_write_color = pipe->create_blend_state(pipe, &blend);
 
    /* depth stencil alpha state objects */
index 76023794dcdaecdacb0cea2a509c17bf0b037105..67027ec1a52dd740e4684dd6fdd2e2ca28a03660 100644 (file)
@@ -1287,7 +1287,7 @@ util_create_gen_mipmap(struct pipe_context *pipe,
 
    /* disabled blending/masking */
    memset(&ctx->blend, 0, sizeof(ctx->blend));
-   ctx->blend.colormask = PIPE_MASK_RGBA;
+   ctx->blend.rt[0].colormask = PIPE_MASK_RGBA;
 
    /* no-op depth/stencil/alpha */
    memset(&ctx->depthstencil, 0, sizeof(ctx->depthstencil));