mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
i915g: don't pot-align stride for tiled buffers
libdrm will do this for us, if it's required (i.e. if tiling is possible). Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com> Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
This commit is contained in:
parent
6ae6e0c6fe
commit
32345610cc
1 changed files with 3 additions and 2 deletions
|
|
@ -175,9 +175,10 @@ i9x5_scanout_layout(struct i915_texture *tex)
|
|||
i915_texture_set_image_offset(tex, 0, 0, 0, 0);
|
||||
|
||||
if (pt->width0 >= 240) {
|
||||
tex->stride = get_pot_stride(pt->format, pt->width0);
|
||||
tex->stride = align(util_format_get_stride(pt->format, pt->width0), 64);
|
||||
tex->total_nblocksy = align_nblocksy(pt->format, pt->height0, 8);
|
||||
tex->tiling = I915_TILE_X;
|
||||
/* special case for cursors */
|
||||
} else if (pt->width0 == 64 && pt->height0 == 64) {
|
||||
tex->stride = get_pot_stride(pt->format, pt->width0);
|
||||
tex->total_nblocksy = align_nblocksy(pt->format, pt->height0, 8);
|
||||
|
|
@ -212,7 +213,7 @@ i9x5_display_target_layout(struct i915_texture *tex)
|
|||
i915_texture_set_level_info(tex, 0, 1);
|
||||
i915_texture_set_image_offset(tex, 0, 0, 0, 0);
|
||||
|
||||
tex->stride = get_pot_stride(pt->format, pt->width0);
|
||||
tex->stride = align(util_format_get_stride(pt->format, pt->width0), 64);
|
||||
tex->total_nblocksy = align_nblocksy(pt->format, pt->height0, 8);
|
||||
tex->tiling = I915_TILE_X;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue