i915g: Implement GL_STREAM_* for textures by using untiled textures.

This commit is contained in:
Stéphane Marchesin 2011-11-09 16:46:24 -08:00
parent d269ce0a39
commit 52b75c6165
1 changed files with 1 additions and 1 deletions

View File

@ -958,7 +958,7 @@ i915_texture_create(struct pipe_screen *screen,
pipe_reference_init(&tex->b.b.reference, 1);
tex->b.b.screen = screen;
if (force_untiled)
if ( (force_untiled) || (template->usage == PIPE_USAGE_STREAM) )
tex->tiling = I915_TILE_NONE;
else
tex->tiling = i915_texture_tiling(is, tex);