freedreno: a2xx: Prevent crash in emit_texture if view is not set
authorWladimir J. van der Laan <laanwj@gmail.com>
Wed, 23 Aug 2017 12:43:14 +0000 (12:43 +0000)
committerWladimir J. van der Laan <laanwj@gmail.com>
Sat, 31 Mar 2018 06:17:59 +0000 (06:17 +0000)
commit6be017fdc4c4edd6c1815254f51e8dc2f02d79ac
treed97cb2b3eaff2c668eb98ee260d4ce485d17a57e
parentfb413727618608e65013b13f3601ceefe6d36f9b
freedreno: a2xx: Prevent crash in emit_texture if view is not set

Textures will sometimes be updated if texture view state was
un-set, without this change that causes an assertion crash or
segfault.

Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a2xx/fd2_emit.c