summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStéphane Marchesin <[email protected]>2012-09-10 20:56:29 -0700
committerStéphane Marchesin <[email protected]>2012-10-02 17:54:48 -0700
commit2acc7193743199701f8f6d1877a59ece0ec4fa5b (patch)
tree5d92a43f497ba426cde6ac8f96cb94f87208bb47
parent0a523a8820e8a2549ac1c7887eb1892b228af44b (diff)
i915g: Use X tiling for textures
This is what the classic driver does, and it allows faster texture uploads.
-rw-r--r--src/gallium/drivers/i915/i915_resource_texture.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gallium/drivers/i915/i915_resource_texture.c b/src/gallium/drivers/i915/i915_resource_texture.c
index 603a379d0c8..83437af371a 100644
--- a/src/gallium/drivers/i915/i915_resource_texture.c
+++ b/src/gallium/drivers/i915/i915_resource_texture.c
@@ -181,13 +181,8 @@ i915_texture_tiling(struct i915_screen *is, struct i915_texture *tex)
if (tex->b.b.target == PIPE_TEXTURE_1D)
return I915_TILE_NONE;
- if (util_format_is_s3tc(tex->b.b.format))
- return I915_TILE_X;
-
- if (is->debug.use_blitter)
- return I915_TILE_X;
- else
- return I915_TILE_Y;
+ /* Use X tiling for 2D, 3D and compressed textures */
+ return I915_TILE_X;
}