summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915
diff options
context:
space:
mode:
authorStéphane Marchesin <[email protected]>2011-06-28 12:04:45 -0700
committerStéphane Marchesin <[email protected]>2011-06-28 12:05:28 -0700
commitbd1ee764421ed23eb12c9d8be2dabe97100ad080 (patch)
tree07be4c504d785ec94a5949f11226485c71e9e1b6 /src/gallium/drivers/i915
parenta09c5c2e3053c48a33134cf28229105bfef52e6f (diff)
i915g: Fix staging texture uploads a bit.
They still look corrupted, but at least now they don't look tiled any more.
Diffstat (limited to 'src/gallium/drivers/i915')
-rw-r--r--src/gallium/drivers/i915/i915_resource_texture.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gallium/drivers/i915/i915_resource_texture.c b/src/gallium/drivers/i915/i915_resource_texture.c
index 62ec580fd31..0b6424f8d16 100644
--- a/src/gallium/drivers/i915/i915_resource_texture.c
+++ b/src/gallium/drivers/i915/i915_resource_texture.c
@@ -981,11 +981,7 @@ i915_texture_create(struct pipe_screen *screen,
else
buf_usage = I915_NEW_TEXTURE;
- if (tex->tiling == I915_TILE_NONE)
- tex->buffer = iws->buffer_create(iws, tex->total_nblocksy * tex->stride,
- buf_usage);
- else
- tex->buffer = iws->buffer_create_tiled(iws, &tex->stride, tex->total_nblocksy,
+ tex->buffer = iws->buffer_create_tiled(iws, &tex->stride, tex->total_nblocksy,
&tex->tiling, buf_usage);
if (!tex->buffer)
goto fail;