intel/eu: Return new instruction to caller from brw_fb_WRITE().
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 13 Jan 2017 22:16:12 +0000 (14:16 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 28 Jun 2018 20:19:38 +0000 (13:19 -0700)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/intel/compiler/brw_eu.h
src/intel/compiler/brw_eu_emit.c

index 0f07eeb3d6dc2933e6b768795b143a0d65056659..aad2434bcf45db92ec4e1e22b1dbfbf4c63137ed 100644 (file)
@@ -328,16 +328,16 @@ void brw_svb_write(struct brw_codegen *p,
                    unsigned binding_table_index,
                    bool   send_commit_msg);
 
-void brw_fb_WRITE(struct brw_codegen *p,
-                  struct brw_reg payload,
-                  struct brw_reg implied_header,
-                  unsigned msg_control,
-                  unsigned binding_table_index,
-                  unsigned msg_length,
-                  unsigned response_length,
-                  bool eot,
-                  bool last_render_target,
-                  bool header_present);
+brw_inst *brw_fb_WRITE(struct brw_codegen *p,
+                       struct brw_reg payload,
+                       struct brw_reg implied_header,
+                       unsigned msg_control,
+                       unsigned binding_table_index,
+                       unsigned msg_length,
+                       unsigned response_length,
+                       bool eot,
+                       bool last_render_target,
+                       bool header_present);
 
 brw_inst *gen9_fb_READ(struct brw_codegen *p,
                        struct brw_reg dst,
index d3246edde44026d2c15eecab6a92cf22f6141ae7..365630b703a4775f15623e4a7ba64ccce93a6777 100644 (file)
@@ -2285,17 +2285,17 @@ void brw_oword_block_read(struct brw_codegen *p,
    brw_pop_insn_state(p);
 }
 
-
-void brw_fb_WRITE(struct brw_codegen *p,
-                  struct brw_reg payload,
-                  struct brw_reg implied_header,
-                  unsigned msg_control,
-                  unsigned binding_table_index,
-                  unsigned msg_length,
-                  unsigned response_length,
-                  bool eot,
-                  bool last_render_target,
-                  bool header_present)
+brw_inst *
+brw_fb_WRITE(struct brw_codegen *p,
+             struct brw_reg payload,
+             struct brw_reg implied_header,
+             unsigned msg_control,
+             unsigned binding_table_index,
+             unsigned msg_length,
+             unsigned response_length,
+             bool eot,
+             bool last_render_target,
+             bool header_present)
 {
    const struct gen_device_info *devinfo = p->devinfo;
    const unsigned target_cache =
@@ -2344,6 +2344,8 @@ void brw_fb_WRITE(struct brw_codegen *p,
                            response_length,
                            eot,
                            0 /* send_commit_msg */);
+
+   return insn;
 }
 
 brw_inst *