diff options
author | Matt Turner <[email protected]> | 2014-08-24 19:38:21 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-09-24 09:42:46 -0700 |
commit | 269b6e24d6ec61d8d8d0c5d1b3d1bfa4f4a55f5f (patch) | |
tree | 60593488f3c4db9fa4307341c897f2a7497369aa /src/mesa/drivers/dri/i965/brw_vec4.h | |
parent | b0b64c85e4a0dafbb46405e4b3c17be24b63347f (diff) |
i965/vec4: Preserve CFG in spill_reg().
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h b/src/mesa/drivers/dri/i965/brw_vec4.h index 69faa740cb2..9092f1c8a95 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4.h +++ b/src/mesa/drivers/dri/i965/brw_vec4.h @@ -410,7 +410,8 @@ public: vec4_instruction *emit(enum opcode opcode, dst_reg dst, src_reg src0, src_reg src1, src_reg src2); - vec4_instruction *emit_before(vec4_instruction *inst, + vec4_instruction *emit_before(bblock_t *block, + vec4_instruction *inst, vec4_instruction *new_inst); vec4_instruction *MOV(const dst_reg &dst, const src_reg &src0); @@ -554,17 +555,17 @@ public: void emit_untyped_surface_read(unsigned surf_index, dst_reg dst, src_reg offset); - src_reg get_scratch_offset(vec4_instruction *inst, + src_reg get_scratch_offset(bblock_t *block, vec4_instruction *inst, src_reg *reladdr, int reg_offset); - src_reg get_pull_constant_offset(vec4_instruction *inst, + src_reg get_pull_constant_offset(bblock_t *block, vec4_instruction *inst, src_reg *reladdr, int reg_offset); - void emit_scratch_read(vec4_instruction *inst, + void emit_scratch_read(bblock_t *block, vec4_instruction *inst, dst_reg dst, src_reg orig_src, int base_offset); - void emit_scratch_write(vec4_instruction *inst, + void emit_scratch_write(bblock_t *block, vec4_instruction *inst, int base_offset); - void emit_pull_constant_load(vec4_instruction *inst, + void emit_pull_constant_load(bblock_t *block, vec4_instruction *inst, dst_reg dst, src_reg orig_src, int base_offset); |