mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 05:00:09 +01:00
vc4: Add support for rendering to cube map surfaces.
We need to fix up the offset to point at the face of the cube. Fixes
piglit fbo-cubemap, copyteximage CUBE, and glean's fbo test.
Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 48fe53bbb9)
This commit is contained in:
parent
68ecc39aba
commit
08c747374c
1 changed files with 2 additions and 1 deletions
|
|
@ -588,7 +588,8 @@ vc4_create_surface(struct pipe_context *pctx,
|
|||
psurf->u.tex.level = level;
|
||||
psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer;
|
||||
psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer;
|
||||
surface->offset = rsc->slices[level].offset;
|
||||
surface->offset = (rsc->slices[level].offset +
|
||||
psurf->u.tex.first_layer * rsc->cube_map_stride);
|
||||
surface->tiling = rsc->slices[level].tiling;
|
||||
|
||||
return &surface->base;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue