diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index 36cf9a72729..1925e6f194a 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -3290,6 +3290,14 @@ st_ClearTexSubImage(struct gl_context *ctx, u_box_3d(xoffset, yoffset, zoffset + texImage->Face, width, height, depth, &box); + + if (pt->target == PIPE_TEXTURE_1D_ARRAY) { + box.z = box.y; + box.depth = box.height; + box.y = 0; + box.height = 1; + } + if (texObj->Immutable) { /* The texture object has to be consistent (no "loose", per-image * gallium resources). If this texture is a view into another