Commit 5a5ee4e9 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

CAN_DISCARD

parent 23742633
......@@ -62,6 +62,9 @@ enum mali_gl_mode {
: (field == 0) ? "0" \
: "0 /* XXX: Unknown, check hexdump */"
/* Flag applies to unknown2_3? */
#define MALI_CAN_DISCARD (1 << 21)
struct mali_shader_meta {
mali_ptr shader;
u32 zero1;
......
......@@ -321,11 +321,15 @@ panwrap_replay_vertex_or_tiler_job(const struct mali_job_descriptor_header *h,
varying_count = s->varying_count;
uniform_count = s->uniform_count;
/* WTF? */
/* WTF? All zero for vertex shaders, block of undigested hex
* for fragment shaders. Let's figure it out, girls :) */
panwrap_prop("unknown2_0 = 0x%" PRIx32, s->unknown2_0);
panwrap_prop("unknown2_1 = 0x%" PRIx32, s->unknown2_1);
panwrap_prop("unknown2_2 = 0x%" PRIx32, s->unknown2_2);
panwrap_prop("unknown2_3 = 0x%" PRIx32, s->unknown2_3);
panwrap_prop("unknown2_3 = %s0x%" PRIx32, s->unknown2_3 & MALI_CAN_DISCARD ? "MALI_CAN_DISCARD | " : "", s->unknown2_3 & ~MALI_CAN_DISCARD);
panwrap_prop("unknown2_4 = 0x%" PRIx32, s->unknown2_4);
panwrap_prop("unknown2_5 = 0x%" PRIx32, s->unknown2_5);
panwrap_prop("unknown2_6 = 0x%" PRIx32, s->unknown2_6);
......
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