Commit 4acc2ffe authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Name unknown0->varyings_end

parent d655c68c
......@@ -334,7 +334,13 @@ struct mali_payload_vertex_tiler {
u32 zero4;
u32 zero5;
uintptr_t unknown0;
/* Zero for vertex jobs. Pointer to the end of varying memory for this
* draw for tiler jobs. It's not clear why this is needed -- why can't
* it compute it from varyings? -- but it's easy enough to work with */
uintptr_t varyings_end;
uintptr_t unknown1; /* pointer */
/* For reasons I don't quite understand this is a pointer to a pointer.
......
......@@ -927,7 +927,7 @@ panwrap_replay_vertex_or_tiler_job(const struct mali_job_descriptor_header *h,
DYN_MEMORY_PROP(v, job_no, viewport);
DYN_MEMORY_PROP(v, job_no, framebuffer);
MEMORY_PROP(v, unknown0);
MEMORY_PROP(v, varyings_end);
panwrap_prop("_shader_upper = (shader_meta_%d_p) >> 4", job_no);
panwrap_prop("flags = %d", v->flags);
......
......@@ -34,7 +34,7 @@ void main(void) {
ctx.payload_tiler.draw_mode |= MALI_GL_LINE_LOOP;
ctx.payload_tiler.gl_enables |= MALI_GL_FRONT_FACE(MALI_GL_CW);
ctx.payload_tiler.unknown0 = ctx.varyings.gpu + 64;
ctx.payload_tiler.varyings_end = ctx.varyings.gpu + 64;
struct mali_single_framebuffer framebuffer_1 = trans_emit_fbd(&ctx);
......@@ -180,13 +180,12 @@ void main(void) {
varyings_1[0].elements = (ctx.varyings.gpu + 0 + 128) | 1;
varyings_1[1].elements = (ctx.varyings.gpu + 64 + 128) | 1;
ctx.payload_tiler.varyings_end = ctx.varyings.gpu + 64 + 128;
mali_ptr varyings_2_p = panfrost_upload(&ctx.cmdstream, &varyings_1, sizeof(varyings_1), false);
ctx.payload_vertex.varyings = varyings_2_p;
ctx.payload_tiler.varyings = varyings_2_p;
ctx.payload_tiler.unknown0 = ctx.varyings.gpu + 64 + 128;
ctx.payload_tiler.line_width = 7.0f;
ctx.payload_tiler.draw_mode = 0x18038000 | MALI_GL_LINE_STRIP;
......
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