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

Correct registers

parent 65b36451
......@@ -232,7 +232,7 @@ __attribute__((__packed__))
/* Special register aliases */
#define REGISTER_UNUSED 24
#define REGISTER_INLINE 26
#define REGISTER_CONSTANT 26
#define REGISTER_OFFSET 27
#define REGISTER_TEXTURE_1 28
#define REGISTER_TEXTURE_2 29
......
......@@ -140,9 +140,9 @@ emit_load_const(compiler_context *ctx, nir_load_const_instr *instr)
memcpy(&ins.constants, &instr->value.f32, sizeof(instr->value.f32));
alu_register_word registers = {
.input1_reg = 0,
.input2_reg = 0,
.output_reg = 0
.input1_reg = REGISTER_CONSTANT,
.input2_reg = REGISTER_UNUSED,
.output_reg = 0 /* TODO */
};
ins.registers = registers;
......
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