aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-04-30 16:49:31 -0400
committerMarge Bot <[email protected]>2020-05-01 00:27:23 +0000
commit6f7d94580e3b603cb036bef9a1a235ee6b910bc0 (patch)
tree3c9e6e420cb592785e34315d8931499098ce0c58
parentbde19c0e7ba575f3c8ca8ea76c916034264a8713 (diff)
pan/decode: Don't crash on missing payload
Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4844>
-rw-r--r--src/panfrost/pandecode/decode.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/panfrost/pandecode/decode.c b/src/panfrost/pandecode/decode.c
index eff8b47aa39..48b179ab69e 100644
--- a/src/panfrost/pandecode/decode.c
+++ b/src/panfrost/pandecode/decode.c
@@ -2288,9 +2288,11 @@ pandecode_bifrost_texture(
pandecode_log_cont("\n");
struct pandecode_mapped_memory *tmem = pandecode_find_mapped_gpu_mem_containing(t->payload);
- pandecode_texture_payload(t->payload, t->type, t->layout,
- true, t->levels, t->depth,
- t->array_size, tmem);
+ if (t->payload) {
+ pandecode_texture_payload(t->payload, t->type, t->layout,
+ true, t->levels, t->depth,
+ t->array_size, tmem);
+ }
pandecode_indent--;
pandecode_log("};\n");