diff options
author | Francisco Jerez <[email protected]> | 2018-06-03 03:30:50 -0700 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2018-07-09 23:46:58 -0700 |
commit | b3cce4c1308748c6a0de833ff0ddf07e62ade6b7 (patch) | |
tree | 0f6b673ade06335136df75a1f28b462c2af6a1b3 /src/intel/compiler | |
parent | 95b536714983dffd3901b061be8ce1e2a12cdeff (diff) |
intel/eu: Get rid of the return value of brw_send_indirect_surface_message().
All users of brw_send_indirect_surface_message() should be providing a
full descriptor immediate up front by now, this isn't necessary
anymore.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/compiler')
-rw-r--r-- | src/intel/compiler/brw_eu_emit.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/intel/compiler/brw_eu_emit.c b/src/intel/compiler/brw_eu_emit.c index 3ac4579d048..00e255461e1 100644 --- a/src/intel/compiler/brw_eu_emit.c +++ b/src/intel/compiler/brw_eu_emit.c @@ -2477,7 +2477,7 @@ brw_send_indirect_message(struct brw_codegen *p, return &p->store[setup]; } -static struct brw_inst * +static void brw_send_indirect_surface_message(struct brw_codegen *p, unsigned sfid, struct brw_reg dst, @@ -2485,8 +2485,6 @@ brw_send_indirect_surface_message(struct brw_codegen *p, struct brw_reg surface, unsigned desc_imm) { - struct brw_inst *insn; - if (surface.file != BRW_IMMEDIATE_VALUE) { struct brw_reg addr = retype(brw_address_reg(0), BRW_REGISTER_TYPE_UD); @@ -2499,19 +2497,17 @@ brw_send_indirect_surface_message(struct brw_codegen *p, /* Mask out invalid bits from the surface index to avoid hangs e.g. when * some surface array is accessed out of bounds. */ - insn = brw_AND(p, addr, - suboffset(vec1(retype(surface, BRW_REGISTER_TYPE_UD)), - BRW_GET_SWZ(surface.swizzle, 0)), - brw_imm_ud(0xff)); + brw_AND(p, addr, + suboffset(vec1(retype(surface, BRW_REGISTER_TYPE_UD)), + BRW_GET_SWZ(surface.swizzle, 0)), + brw_imm_ud(0xff)); brw_pop_insn_state(p); surface = addr; } - insn = brw_send_indirect_message(p, sfid, dst, payload, surface, desc_imm); - - return insn; + brw_send_indirect_message(p, sfid, dst, payload, surface, desc_imm); } static bool |