st/mesa: Allow zero as [level|layer]_override
authorLepton Wu <lepton@chromium.org>
Fri, 30 Aug 2019 17:30:53 +0000 (17:30 +0000)
committerMarek Olšák <maraeo@gmail.com>
Fri, 30 Aug 2019 17:30:53 +0000 (17:30 +0000)
commitbd98470a4692860004c1e9282808a638758c6f04
tree40023250258f80d6880e0d09f1ac88b8e9cf9507
parent6926f56d5bd02de66d1e928d79ffb8082eeb0211
st/mesa: Allow zero as [level|layer]_override

This fix two dEQP tests for virgl:

dEQP-EGL.functional.image.create.gles2_cubemap_positive_x_rgba_texture
dEQP-EGL.functional.image.render_multiple_contexts.gles2_cubemap_positive_x_rgba8_texture

Signed-off-by: Lepton Wu <lepton@chromium.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
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