diff options
author | Marek Olšák <[email protected]> | 2012-11-11 13:33:01 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-11-11 13:33:01 +0100 |
commit | 05a2f66cde8a9b332ea4266df70d2407d5ec899b (patch) | |
tree | 00a142f999fd5f92d7ab16c2df505997d6d699ba /src/gallium | |
parent | 5ecbc3a9e85d4e31c81c132ea94fb1fafc33be4a (diff) |
gallium/u_blitter: handle PIPE_TEXTURE_CUBE_ARRAY in is_box_inside_resource
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/util/u_blitter.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index 091b6e1b28c..e788b659457 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -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:; } |