gallium: set fb.width/height
authorBrian <brian.paul@tungstengraphics.com>
Thu, 20 Mar 2008 21:22:20 +0000 (15:22 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 20 Mar 2008 21:22:20 +0000 (15:22 -0600)
src/gallium/auxiliary/util/u_blit.c
src/gallium/auxiliary/util/u_gen_mipmap.c

index bb316554a41f8d96efd5b707960e55d7f0536951..28a404fd01fa5a56660714de9797a61d1582ca7f 100644 (file)
@@ -316,6 +316,8 @@ util_blit_pixels(struct blit_state *ctx,
 
    /* drawing dest */
    memset(&fb, 0, sizeof(fb));
+   fb.width = dst->width;
+   fb.height = dst->height;
    fb.num_cbufs = 1;
    fb.cbufs[0] = dst;
    cso_set_framebuffer(ctx->cso, &fb);
index b84752e0b49a3c77cd366372158e68745006e74a..cf02f00b1b7fd6ee3e839e79f191c2efe3c49cfe 100644 (file)
@@ -901,6 +901,8 @@ util_gen_mipmap(struct gen_mipmap_state *ctx,
        * Setup framebuffer / dest surface
        */
       fb.cbufs[0] = screen->get_tex_surface(screen, pt, face, dstLevel, zslice);
+      fb.width = pt->width[dstLevel];
+      fb.height = pt->height[dstLevel];
       cso_set_framebuffer(ctx->cso, &fb);
 
       /*