Commit 6f7d9458 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig Committed by Marge Bot
Browse files

pan/decode: Don't crash on missing payload

Signed-off-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <>
Part-of: <mesa/mesa!4844>
parent bde19c0e
Pipeline #140636 passed with stages
in 21 minutes and 47 seconds
...@@ -2288,9 +2288,11 @@ pandecode_bifrost_texture( ...@@ -2288,9 +2288,11 @@ pandecode_bifrost_texture(
pandecode_log_cont("\n"); pandecode_log_cont("\n");
struct pandecode_mapped_memory *tmem = pandecode_find_mapped_gpu_mem_containing(t->payload); struct pandecode_mapped_memory *tmem = pandecode_find_mapped_gpu_mem_containing(t->payload);
pandecode_texture_payload(t->payload, t->type, t->layout, if (t->payload) {
true, t->levels, t->depth, pandecode_texture_payload(t->payload, t->type, t->layout,
t->array_size, tmem); true, t->levels, t->depth,
t->array_size, tmem);
pandecode_indent--; pandecode_indent--;
pandecode_log("};\n"); pandecode_log("};\n");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment