mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
i915g: Fix staging texture uploads a bit.
They still look corrupted, but at least now they don't look tiled any more.
This commit is contained in:
parent
a09c5c2e30
commit
bd1ee76442
1 changed files with 1 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue