i915g: Implement GL_STREAM_* for textures by using untiled textures.
authorStéphane Marchesin <marcheu@chromium.org>
Thu, 10 Nov 2011 00:46:24 +0000 (16:46 -0800)
committerStéphane Marchesin <marcheu@chromium.org>
Fri, 2 Dec 2011 02:12:56 +0000 (18:12 -0800)
src/gallium/drivers/i915/i915_resource_texture.c

index 0b6424f8d16d91b96cd230085f0b4ebbd73c3416..8ff733a7be530f261d8fe3e54084fe1192a51449 100644 (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);