mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 03:48:06 +02:00
freedreno: turn staging cube into 2d-array
Since we could only need a subset of the layers, and otherwise we trigger an assert in util_max_layer() Signed-off-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
parent
3adf9b0757
commit
a8be53211d
1 changed files with 2 additions and 0 deletions
|
|
@ -353,6 +353,8 @@ fd_alloc_staging(struct fd_context *ctx, struct fd_resource *rsc,
|
|||
* for 3d textures, it is the depth:
|
||||
*/
|
||||
if (tmpl.array_size > 1) {
|
||||
if (tmpl.target == PIPE_TEXTURE_CUBE)
|
||||
tmpl.target = PIPE_TEXTURE_2D_ARRAY;
|
||||
tmpl.array_size = box->depth;
|
||||
tmpl.depth0 = 1;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue