st/mesa: fix import of EGL images with non-zero level or layer
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 10 Oct 2017 11:58:44 +0000 (13:58 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 10 Oct 2017 11:58:44 +0000 (13:58 +0200)
commit288dea076e3311530214aaaa53884a6d920b590a
tree1e7ab9427d7eea482da086be26a4d4b084eadca4
parentd245724399b7ac9e2ddf99d381f7fe092204006a
st/mesa: fix import of EGL images with non-zero level or layer

In GL state, textures created from EGL images look like plain 2D textures
with a single level, so we use the existing layer_override facility and
add an analogous level_override one.

Fixes dEQP-EGL.functional.image.create.gles2_cubemap_{positive,negative}_{x,y,z}_rgba_texture

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_eglimage.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_sampler_view.c
src/mesa/state_tracker/st_texture.h
src/mesa/state_tracker/st_vdpau.c