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

midgard: Get vertex shaders working.... somehow

parent 6f5657b5
...@@ -715,6 +715,8 @@ emit_intrinsic(compiler_context *ctx, nir_intrinsic_instr *instr) ...@@ -715,6 +715,8 @@ emit_intrinsic(compiler_context *ctx, nir_intrinsic_instr *instr)
if (nir_intrinsic_base(instr) == VERTEX_EPILOGUE_BASE) { if (nir_intrinsic_base(instr) == VERTEX_EPILOGUE_BASE) {
alias_ssa(ctx, REGISTER_VERTEX, reg, true); alias_ssa(ctx, REGISTER_VERTEX, reg, true);
} else { } else {
reg = 1; /* XXX WTF WTF WTF WHY DOES THIS WORK WTF */
midgard_instruction ins = m_store_vary_32(reg, offset); midgard_instruction ins = m_store_vary_32(reg, offset);
ins.load_store.unknown = 0x1E9E; /* XXX: What is this? */ ins.load_store.unknown = 0x1E9E; /* XXX: What is this? */
util_dynarray_append(&ctx->current_block, midgard_instruction, ins); util_dynarray_append(&ctx->current_block, midgard_instruction, ins);
......
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