i965g: Fix texture creation
authorJakob Bornecrantz <jakob@vmware.com>
Sun, 28 Feb 2010 16:28:44 +0000 (16:28 +0000)
committerJakob Bornecrantz <jakob@vmware.com>
Sun, 28 Feb 2010 16:28:44 +0000 (16:28 +0000)
src/gallium/drivers/i965/brw_screen_texture.c

index 8bdd43cf140e5fd63f07c4a06d97892b5ab58bd4..38e99613981348e05f7c5bed81f5f96bafc4ca5b 100644 (file)
@@ -250,7 +250,7 @@ static struct pipe_texture *brw_texture_create( struct pipe_screen *screen,
    tex->ss.ss0.mipmap_layout_mode = BRW_SURFACE_MIPMAPLAYOUT_BELOW;
    tex->ss.ss0.surface_type = translate_tex_target(tex->base.target);
 
-   format = translate_tex_target(tex->base.format);
+   format = translate_tex_format(tex->base.format);
    assert(format != BRW_SURFACEFORMAT_INVALID);
    tex->ss.ss0.surface_format = format;