mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
v3d: Respect a sampler view's first_layer field.
Fixes texturing from EGL images created from cubemap faces, as in dEQP-EGL.functional.image.create.gles2_cubemap_negative_x_rgba_texture
This commit is contained in:
parent
c6737756ad
commit
5d11094db1
1 changed files with 3 additions and 1 deletions
|
|
@ -768,7 +768,9 @@ v3d_create_sampler_view(struct pipe_context *pctx, struct pipe_resource *prsc,
|
|||
*/
|
||||
tex.texture_base_pointer = cl_address(NULL,
|
||||
rsc->bo->offset +
|
||||
rsc->slices[0].offset),
|
||||
rsc->slices[0].offset +
|
||||
cso->u.tex.first_layer *
|
||||
rsc->cube_map_stride),
|
||||
|
||||
tex.swizzle_r = translate_swizzle(so->swizzle[0]);
|
||||
tex.swizzle_g = translate_swizzle(so->swizzle[1]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue