Commit b690e896 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Decode sampler border color

parent 6189fe8d
......@@ -522,6 +522,9 @@ struct mali_sampler_descriptor {
unsigned unknown2 : 1;
unsigned zero : 16;
uint32_t zero2;
float border_color[4];
} __attribute__((packed));
/* TODO: What are the floats? Apparently always { -inf, -inf, inf, inf },
......
......@@ -826,12 +826,18 @@ panwrap_replay_vertex_or_tiler_job(const struct mali_job_descriptor_header *h,
panwrap_prop("compare_func = %s", panwrap_alt_func_name(s->compare_func));
if (s->zero) {
if (s->zero || s->zero2) {
panwrap_msg("Zero tripped\n");
panwrap_prop("zero = 0x%X\n", s->zero);
panwrap_prop("zero = 0x%X, 0x%X\n", s->zero, s->zero2);
}
panwrap_prop("unknown2 = %d\n", s->unknown2);
panwrap_prop("unknown2 = %d", s->unknown2);
panwrap_prop("border_color = { %f, %f, %f, %f }",
s->border_color[0],
s->border_color[1],
s->border_color[2],
s->border_color[3]);
panwrap_indent--;
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