nouveau: Pass proper format to NV04_GDI_RECTANGLE_TEXT.
authorYounes Manton <younes.m@gmail.com>
Fri, 6 Feb 2009 19:36:56 +0000 (14:36 -0500)
committerYounes Manton <younes.m@gmail.com>
Fri, 6 Feb 2009 19:36:56 +0000 (14:36 -0500)
src/gallium/drivers/nv04/nv04_surface_2d.c

index 2b84e6c52924b92c4df7f7f15e2a93bc8e6612c9..b507e993f1efd6829c0d2cc8c1bde3716bb9c565 100644 (file)
@@ -277,7 +277,7 @@ nv04_surface_fill(struct nv04_surface_2d *ctx, struct pipe_surface *dst,
        cs2d_format = nv04_surface_format(dst->format);
        assert(cs2d_format >= 0);
 
-       gdirect_format = nv04_surface_format(dst->format);
+       gdirect_format = nv04_rect_format(dst->format);
        assert(gdirect_format >= 0);
 
        WAIT_RING (chan, 16);