Commit 24e7f383 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Introduce blend_equation

parent a8d415b9
......@@ -104,7 +104,9 @@ struct mali_shader_meta {
union {
mali_ptr blend_shader;
u64 unknown2_9;
/* Exact format of this is not known yet */
u64 blend_equation;
};
} __attribute__((packed));
......
......@@ -366,7 +366,7 @@ panwrap_replay_vertex_or_tiler_job(const struct mali_job_descriptor_header *h,
if (s->unknown2_3 & MALI_HAS_BLEND_SHADER) {
panwrap_replay_shader_address("blend_shader", s->blend_shader);
} else {
panwrap_prop("unknown2_9 = 0x%" PRIx64, s->unknown2_9);
panwrap_prop("blend_equation = 0x%" PRIx64, s->blend_equation);
}
panwrap_indent--;
......
......@@ -201,7 +201,7 @@ void main(void) {
.unknown2_6 = 0x0,
.unknown2_7 = 0x0,
.unknown2_8 = 0x0,
.unknown2_9 = 0x0,
.blend_equation = 0x0,
};
mali_ptr shader_meta_1_p = pandev_upload(-1, alloc_gpu_va_19, memory_19, &shader_meta_1, sizeof(shader_meta_1), false);
......@@ -313,13 +313,13 @@ void main(void) {
.unknown2_0 = 0x0,
.unknown2_1 = 0x0,
.unknown2_2 = 0x0,
.unknown2_3 = 0x3710ffff,
.unknown2_4 = 0x46f0ffff,
.unknown2_3 = MALI_HAS_MSAA | 0x3710ffff,
.unknown2_4 = /*MALI_NO_MSAA | */0x6f0ffff,
.unknown2_5 = 0x7ff00,
.unknown2_6 = 0x7ff00,
.unknown2_7 = 0x0,
.unknown2_8 = 0x0,
.unknown2_9 = 0xf0122122,
.blend_equation = 0xf0122122,
};
mali_ptr shader_meta_2_p = pandev_upload(-1, alloc_gpu_va_19, memory_19, &shader_meta_2, sizeof(shader_meta_2), false);
......@@ -370,7 +370,7 @@ void main(void) {
.unknown1 = 0x0,
.flags = 0x1f,
.heap_free_address = 0x0,
.unknown2 = 0xb84e0281,
.unknown2 = 0xb84e0281 | 0x10 | (1 << 23),
.weights = { 0x0, 0x0, 0x0, 0x0, 0x20c75c0, 0x1, 0xfffff9c0, 0x0, },
.unknown_address_0 = alloc_gpu_va_11 + 0,
.unknown_address_1 = alloc_gpu_va_11 + 24576,
......
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