From: Jakob Bornecrantz Date: Sun, 28 Feb 2010 16:28:44 +0000 (+0000) Subject: i965g: Fix texture creation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=79a86d312d8b3bc2e4fa28734467400e0b050301;p=mesa.git i965g: Fix texture creation --- diff --git a/src/gallium/drivers/i965/brw_screen_texture.c b/src/gallium/drivers/i965/brw_screen_texture.c index 8bdd43cf140..38e99613981 100644 --- a/src/gallium/drivers/i965/brw_screen_texture.c +++ b/src/gallium/drivers/i965/brw_screen_texture.c @@ -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;