mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
pan/decode: Don't crash on missing payload
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4844>
This commit is contained in:
parent
bde19c0e7b
commit
6f7d94580e
1 changed files with 5 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue