aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texturebindless.c
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2017-12-30 00:28:51 -0500
committerIlia Mirkin <[email protected]>2018-01-04 02:22:25 -0500
commite923075a82af63e5b5019c17dcf86a573deb7282 (patch)
tree160154b620a0c893342e8c24dd405a9b059f2978 /src/mesa/main/texturebindless.c
parentf222cf3c6d6fc5d9dee3742d20aa77cfff9c39f8 (diff)
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 <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/mesa/main/texturebindless.c')
-rw-r--r--src/mesa/main/texturebindless.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/texturebindless.c b/src/mesa/main/texturebindless.c
index f062ea904a1..9aaa0367c2d 100644
--- a/src/mesa/main/texturebindless.c
+++ b/src/mesa/main/texturebindless.c
@@ -327,6 +327,7 @@ get_image_handle(struct gl_context *ctx, struct gl_texture_object *texObj,
} else {
imgObj.Layered = GL_FALSE;
imgObj.Layer = 0;
+ imgObj._Layer = 0;
}
/* Request a new image handle from the driver. */