Commit 1d8cf377 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

MALI_NO_ALPHA_TO_COVERAGE

parent 86ba2534
......@@ -172,6 +172,9 @@ struct mali_blend_equation {
#define MALI_ALPHA_COVERAGE(clampf) ((uint16_t) (int) (clampf * 15.0f))
#define MALI_GET_ALPHA_COVERAGE(nibble) ((float) nibble / 15.0f)
/* Applies to unknown1 */
#define MALI_NO_ALPHA_TO_COVERAGE (1 << 10)
struct mali_shader_meta {
mali_ptr shader;
u32 zero1;
......@@ -180,7 +183,7 @@ struct mali_shader_meta {
u16 attribute_count;
u16 varying_count;
/* 0x20000600, 0x20000001, etc... not sure */
/* 0x200 except MALI_NO_ALPHA_TO_COVERAGE */
u16 unknown1;
/* Whole number of uniform registers used, times two; whole number of
......
......@@ -494,7 +494,9 @@ panwrap_replay_vertex_or_tiler_job(const struct mali_job_descriptor_header *h,
panwrap_prop("varying_count = %" PRId16, s->varying_count);
panwrap_prop("uniform_count = %" PRId16, s->uniform_count);
panwrap_prop("work_count = %" PRId16, s->work_count);
panwrap_prop("unknown1 = 0x%" PRIx32, s->unknown1);
panwrap_prop("unknown1 = %s0x%" PRIx32,
s->unknown1 & MALI_NO_ALPHA_TO_COVERAGE ? "MALI_NO_ALPHA_TO_COVERAGE | " : "",
s->unknown1 & ~MALI_NO_ALPHA_TO_COVERAGE);
panwrap_prop("unknown2 = 0x%" PRIx32, s->unknown2);
/* Save for dumps */
......
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