diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2010-02-28 16:28:44 +0000 |
---|---|---|
committer | Jakob Bornecrantz <jakob@vmware.com> | 2010-02-28 16:28:44 +0000 |
commit | 79a86d312d8b3bc2e4fa28734467400e0b050301 (patch) | |
tree | cc8a528f8f5e3e3a28c6a19bc45319eb911535ff /src/gallium/drivers/i965/brw_screen_texture.c | |
parent | 54f9c509a1eddfa7b2600ef4e4c18c2e212f6d51 (diff) |
i965g: Fix texture creation
Diffstat (limited to 'src/gallium/drivers/i965/brw_screen_texture.c')
-rw-r--r-- | src/gallium/drivers/i965/brw_screen_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/i965/brw_screen_texture.c b/src/gallium/drivers/i965/brw_screen_texture.c index 8bdd43cf14..38e9961398 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; |