Commit 6069748e authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Identify is_int_signed

parent 5a2227c2
...@@ -270,7 +270,14 @@ struct mali_attr_meta { ...@@ -270,7 +270,14 @@ struct mali_attr_meta {
/* After MALI_POSITIVE, 4 for vec4, 1 for scalar, etc */ /* After MALI_POSITIVE, 4 for vec4, 1 for scalar, etc */
unsigned nr_components : 2; unsigned nr_components : 2;
u64 unknown2 :37; unsigned unknown2 : 1;
/* If the type is a signed integer, this is set. Otherwise, it is
* clear. */
unsigned is_int_signed : 1;
u64 unknown3 :35;
} __attribute__((packed)); } __attribute__((packed));
ASSERT_SIZEOF_TYPE(struct mali_attr_meta, ASSERT_SIZEOF_TYPE(struct mali_attr_meta,
sizeof(u64), sizeof(u64)); sizeof(u64), sizeof(u64));
......
...@@ -640,8 +640,10 @@ panwrap_replay_vertex_or_tiler_job(const struct mali_job_descriptor_header *h, ...@@ -640,8 +640,10 @@ panwrap_replay_vertex_or_tiler_job(const struct mali_job_descriptor_header *h,
panwrap_indent++; panwrap_indent++;
panwrap_prop("index = %d", attr_meta->index); panwrap_prop("index = %d", attr_meta->index);
panwrap_prop("nr_components = MALI_POSITIVE(%d)", MALI_NEGATIVE(attr_meta->nr_components)); panwrap_prop("nr_components = MALI_POSITIVE(%d)", MALI_NEGATIVE(attr_meta->nr_components));
panwrap_prop("is_int_signed = %d", attr_meta->is_int_signed);
panwrap_prop("unknown1 = 0x%" PRIx64, (u64) attr_meta->unknown1); panwrap_prop("unknown1 = 0x%" PRIx64, (u64) attr_meta->unknown1);
panwrap_prop("unknown2 = 0x%" PRIx64, (u64) attr_meta->unknown2); panwrap_prop("unknown2 = 0x%" PRIx64, (u64) attr_meta->unknown2);
panwrap_prop("unknown3 = 0x%" PRIx64, (u64) attr_meta->unknown3);
panwrap_indent--; panwrap_indent--;
panwrap_log("},\n"); panwrap_log("},\n");
......
Markdown is supported
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