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

Identify NO_MSAA

parent 6887f97b
......@@ -63,8 +63,12 @@ enum mali_gl_mode {
: "0 /* XXX: Unknown, check hexdump */"
/* Flags apply to unknown2_3? */
#define MALI_CAN_DISCARD (1 << 21)
#define MALI_HAS_BLEND_SHADER (1 << 22)
#define MALI_HAS_MSAA (1 << 16)
#define MALI_CAN_DISCARD (1 << 21)
#define MALI_HAS_BLEND_SHADER (1 << 22)
/* Next flags to unknown4 */
#define MALI_NO_MSAA (1 << 30)
struct mali_shader_meta {
mali_ptr shader;
......
......@@ -49,10 +49,17 @@ static const struct panwrap_flag_info clear_flag_info[] = {
#define FLAG_INFO(flag) { MALI_##flag, "MALI_" #flag }
static const struct panwrap_flag_info u3_flag_info[] = {
FLAG_INFO(HAS_MSAA),
FLAG_INFO(CAN_DISCARD),
FLAG_INFO(HAS_BLEND_SHADER),
{}
};
static const struct panwrap_flag_info u4_flag_info[] = {
FLAG_INFO(NO_MSAA),
{}
};
#undef FLAG_INFO
extern char* replace_fragment;
......@@ -339,7 +346,10 @@ panwrap_replay_vertex_or_tiler_job(const struct mali_job_descriptor_header *h,
panwrap_log_decoded_flags(u3_flag_info, s->unknown2_3);
panwrap_log_cont(",\n");
panwrap_prop("unknown2_4 = 0x%" PRIx32, s->unknown2_4);
panwrap_log(".unknown2_4 = ");
panwrap_log_decoded_flags(u4_flag_info, s->unknown2_4);
panwrap_log_cont(",\n");
panwrap_prop("unknown2_5 = 0x%" PRIx32, s->unknown2_5);
panwrap_prop("unknown2_6 = 0x%" PRIx32, s->unknown2_6);
panwrap_prop("unknown2_7 = 0x%" PRIx32, s->unknown2_7);
......
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