Mesa (master): i965g: Fix texture creation
Jakob Bornecrantz
wallbraker at kemper.freedesktop.org
Sun Feb 28 16:38:52 UTC 2010
Module: Mesa
Branch: master
Commit: 79a86d312d8b3bc2e4fa28734467400e0b050301
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=79a86d312d8b3bc2e4fa28734467400e0b050301
Author: Jakob Bornecrantz <jakob at vmware.com>
Date: Sun Feb 28 16:28:44 2010 +0000
i965g: Fix texture creation
---
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 8bdd43c..38e9961 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;
More information about the mesa-commit
mailing list