Commit 0a6a8901 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Identify not_normalised

parent 6069748e
...@@ -270,6 +270,7 @@ struct mali_attr_meta { ...@@ -270,6 +270,7 @@ 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;
/* Somewhat correlated to the opposite of not_normalised? */
unsigned unknown2 : 1; unsigned unknown2 : 1;
/* If the type is a signed integer, this is set. Otherwise, it is /* If the type is a signed integer, this is set. Otherwise, it is
...@@ -277,7 +278,10 @@ struct mali_attr_meta { ...@@ -277,7 +278,10 @@ struct mali_attr_meta {
unsigned is_int_signed : 1; unsigned is_int_signed : 1;
u64 unknown3 :35; /* if `normalized` passed to VertexAttribPointer is clear */
unsigned not_normalised : 1;
u64 unknown3 :34;
} __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));
......
...@@ -641,6 +641,7 @@ panwrap_replay_vertex_or_tiler_job(const struct mali_job_descriptor_header *h, ...@@ -641,6 +641,7 @@ panwrap_replay_vertex_or_tiler_job(const struct mali_job_descriptor_header *h,
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("is_int_signed = %d", attr_meta->is_int_signed);
panwrap_prop("not_normalised = %d", attr_meta->not_normalised);
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_prop("unknown3 = 0x%" PRIx64, (u64) attr_meta->unknown3);
......
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