gallium/u_blitter: handle PIPE_TEXTURE_CUBE_ARRAY in is_box_inside_resource

This commit is contained in:
Marek Olšák 2012-11-11 13:33:01 +01:00
parent 5ecbc3a9e8
commit 05a2f66cde
1 changed files with 6 additions and 0 deletions

View File

@ -1891,6 +1891,12 @@ static boolean is_box_inside_resource(const struct pipe_resource *res,
height = u_minify(res->height0, level);
depth = res->array_size;
break;
case PIPE_TEXTURE_CUBE_ARRAY:
width = u_minify(res->width0, level);
height = u_minify(res->height0, level);
depth = res->array_size;
assert(res->array_size % 6 == 0);
break;
case PIPE_MAX_TEXTURE_TYPES:;
}