Commit 6887f97b authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Identify HAS_BLEND_SHADER

parent 383d7e9e
......@@ -62,8 +62,9 @@ enum mali_gl_mode {
: (field == 0) ? "0" \
: "0 /* XXX: Unknown, check hexdump */"
/* Flag applies to unknown2_3? */
/* Flags apply to unknown2_3? */
#define MALI_CAN_DISCARD (1 << 21)
#define MALI_HAS_BLEND_SHADER (1 << 22)
struct mali_shader_meta {
mali_ptr shader;
......
......@@ -47,7 +47,13 @@ static const struct panwrap_flag_info clear_flag_info[] = {
};
#undef FLAG_INFO
#define FLAG_INFO(flag) { MALI_##flag, "MALI_" #flag }
static const struct panwrap_flag_info u3_flag_info[] = {
FLAG_INFO(CAN_DISCARD),
FLAG_INFO(HAS_BLEND_SHADER),
{}
};
#undef FLAG_INFO
extern char* replace_fragment;
extern char* replace_vertex;
......@@ -328,7 +334,10 @@ panwrap_replay_vertex_or_tiler_job(const struct mali_job_descriptor_header *h,
panwrap_prop("unknown2_1 = 0x%" PRIx32, s->unknown2_1);
panwrap_prop("unknown2_2 = 0x%" PRIx32, s->unknown2_2);
panwrap_prop("unknown2_3 = %s0x%" PRIx32, s->unknown2_3 & MALI_CAN_DISCARD ? "MALI_CAN_DISCARD | " : "", s->unknown2_3 & ~MALI_CAN_DISCARD);
panwrap_log(".unknown2_3 = ");
panwrap_log_decoded_flags(u3_flag_info, s->unknown2_3);
panwrap_log_cont(",\n");
panwrap_prop("unknown2_4 = 0x%" PRIx32, s->unknown2_4);
panwrap_prop("unknown2_5 = 0x%" PRIx32, s->unknown2_5);
......
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