Mesa (master): i915g: Implement GL_STREAM_* for textures by using untiled textures.

Stephane Marchesin marcheu at kemper.freedesktop.org
Fri Dec 2 02:14:40 UTC 2011


Module: Mesa
Branch: master
Commit: 52b75c6165f2b100fe3f8a55ea3f91fbc79e1bf5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=52b75c6165f2b100fe3f8a55ea3f91fbc79e1bf5

Author: Stéphane Marchesin <marcheu at chromium.org>
Date:   Wed Nov  9 16:46:24 2011 -0800

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

---

 src/gallium/drivers/i915/i915_resource_texture.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/i915/i915_resource_texture.c b/src/gallium/drivers/i915/i915_resource_texture.c
index 0b6424f..8ff733a 100644
--- a/src/gallium/drivers/i915/i915_resource_texture.c
+++ b/src/gallium/drivers/i915/i915_resource_texture.c
@@ -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);




More information about the mesa-commit mailing list