panfrost/decode: Don't disassemble NULL shaders
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 17 Jul 2019 22:43:24 +0000 (15:43 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 18 Jul 2019 17:42:43 +0000 (10:42 -0700)
commit479185a1cdc305be7947f1b364ee1da40d36b66f
tree24f5edc94336b62754041305b4fbeec594be1d77
parent65d89097b8bbf23d305c7d488e6a4a140ce03a91
panfrost/decode: Don't disassemble NULL shaders

It is legal to load a shader from a NULL address, particularly when the
TILER job is used strictly for effects on the Z/S buffer with 0x0 color
mask. Don't crash the decoder in this case.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/pandecode/decode.c