Kaynağa Gözat

st/mesa: handle array textures in st_texture_image_copy

Marek: also handle cube arrays

Signed-off-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
tags/10.3-branchpoint
Dave Airlie 11 yıl önce
ebeveyn
işleme
c530282bbc
1 değiştirilmiş dosya ile 8 ekleme ve 0 silme
  1. 8
    0
      src/mesa/state_tracker/st_texture.c

+ 8
- 0
src/mesa/state_tracker/st_texture.c Dosyayı Görüntüle

@@ -394,6 +394,14 @@ st_texture_image_copy(struct pipe_context *pipe,
src_box.width = width;
src_box.height = height;
src_box.depth = 1;

if (src->target == PIPE_TEXTURE_1D_ARRAY ||
src->target == PIPE_TEXTURE_2D_ARRAY ||
src->target == PIPE_TEXTURE_CUBE_ARRAY) {
face = 0;
depth = src->array_size;
}

/* Loop over 3D image slices */
/* could (and probably should) use "true" 3d box here -
but drivers can't quite handle it yet */

Loading…
İptal
Kaydet