st/mesa: ensure that images don't try to reference non-existent levels
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 27 Feb 2018 00:31:12 +0000 (19:31 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 28 Feb 2018 03:38:33 +0000 (22:38 -0500)
commit086c88551d286cf29a2414227fc3a6f4b0c9c455
tree52d77e3d771595c6b6883c45d784eabeb8b84944
parentc7b25005a135199a84d3eec7cc96b6a789ece0b3
st/mesa: ensure that images don't try to reference non-existent levels

Ideally the st_finalize_texture call would take care of that, but it
doesn't seem to with KHR-GL45.shader_image_size.advanced-nonMS-*. This
assertion makes sure that no such values are passed to the driver.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_atom_image.c