Commit 9fc60958 authored by Lionel Landwerlin's avatar Lionel Landwerlin Committed by Juan Suárez Romero

mesa: don't forget to clear _Layer field on texture unit

On the Android Antutu benchmark we ran into an assert in ISL where the
(base layer + num layers) > total layers. It turns out the core of
mesa forgot to clear the _Layer variable, potentially leaving an
inconsistent value.

v2: Pull setting u->_Layer out of the conditional blocks (Jason)
Signed-off-by: Lionel Landwerlin's avatarLionel Landwerlin <>
Cc: <>
Reviewed-by: Eric Engestrom's avatarEric Engestrom <>
Reviewed-by: Jason Ekstrand's avatarJason Ekstrand <>
(cherry picked from commit 2208d79d)
parent ab1ae127
Pipeline #67906 passed with stages
in 16 minutes and 19 seconds