mesa/bindless: fix missing image _Layer initialization
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 30 Dec 2017 05:28:51 +0000 (00:28 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 4 Jan 2018 07:22:25 +0000 (02:22 -0500)
commite923075a82af63e5b5019c17dcf86a573deb7282
tree160154b620a0c893342e8c24dd405a9b059f2978
parentf222cf3c6d6fc5d9dee3742d20aa77cfff9c39f8
mesa/bindless: fix missing image _Layer initialization

Some later code relies on _Layer to set first/last_layer. Make sure it's
always initialized.

Detected by valgrind's conditional jump/move with uninit value logic.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/mesa/main/texturebindless.c