mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
panfrost: Stop passing a depth > 1 when creating 2D textures
The depth field is ignored if dim != 3D, but it's a bit confusing. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10033>
This commit is contained in:
parent
5d7c244c07
commit
efcb1e494b
1 changed files with 2 additions and 4 deletions
|
|
@ -337,8 +337,7 @@ midgard_load_emit_texture(struct pan_pool *pool, struct MALI_DRAW *draw,
|
|||
};
|
||||
|
||||
panfrost_new_texture(pool->dev, image->layout, texture.cpu,
|
||||
image->width0, image->height0,
|
||||
MAX2(image->nr_samples, 1), 1,
|
||||
image->width0, image->height0, 1, 1,
|
||||
image->format, MALI_TEXTURE_DIMENSION_2D,
|
||||
image->first_level, image->last_level,
|
||||
0, 0,
|
||||
|
|
@ -513,8 +512,7 @@ bifrost_load_emit_texture(struct pan_pool *pool, struct MALI_DRAW *draw,
|
|||
};
|
||||
|
||||
panfrost_new_texture(pool->dev, image->layout, texture.cpu,
|
||||
image->width0, image->height0,
|
||||
MAX2(image->nr_samples, 1), 1,
|
||||
image->width0, image->height0, 1, 1,
|
||||
image->format, MALI_TEXTURE_DIMENSION_2D,
|
||||
image->first_level, image->last_level,
|
||||
0, 0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue