pan/decode: Resolve crash with NULL attr/varyings
This case needs more investigation, but this was found with geometry shaders. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
c0ab268f9c
commit
5ad83015cd
|
@ -995,6 +995,11 @@ pandecode_attributes(const struct pandecode_mapped_memory *mem,
|
|||
{
|
||||
char *prefix = varying ? "varyings" : "attributes";
|
||||
|
||||
if (!addr) {
|
||||
pandecode_msg("no %s\n", prefix);
|
||||
return;
|
||||
}
|
||||
|
||||
union mali_attr *attr = pandecode_fetch_gpu_mem(mem, addr, sizeof(union mali_attr) * count);
|
||||
|
||||
char base[128];
|
||||
|
|
Loading…
Reference in New Issue