mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 04:30:10 +01:00
u_blitter: add cube map array support.
This adds cube array support to the blitter. Reviewed-by: Brian Paul <brianp@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
309fda2fb2
commit
308a03f1ab
1 changed files with 3 additions and 2 deletions
|
|
@ -647,9 +647,10 @@ static void blitter_set_texcoords(struct blitter_context_priv *ctx,
|
|||
|
||||
get_texcoords(src, src_width0, src_height0, x1, y1, x2, y2, coord);
|
||||
|
||||
if (src->texture->target == PIPE_TEXTURE_CUBE) {
|
||||
if (src->texture->target == PIPE_TEXTURE_CUBE ||
|
||||
src->texture->target == PIPE_TEXTURE_CUBE_ARRAY) {
|
||||
set_texcoords_in_vertices(coord, &face_coord[0][0], 2);
|
||||
util_map_texcoords2d_onto_cubemap(layer,
|
||||
util_map_texcoords2d_onto_cubemap(layer % 6,
|
||||
/* pointer, stride in floats */
|
||||
&face_coord[0][0], 2,
|
||||
&ctx->vertices[0][1][0], 8);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue