intel/compiler: remove unused function
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 9 Jul 2018 09:47:50 +0000 (11:47 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 9 Jul 2018 11:21:48 +0000 (13:21 +0200)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/compiler/brw_fs.cpp
src/intel/compiler/brw_fs.h

index c420609fadf0e45e241ab7109f54b1d2e7af5f90..60c2ae8febed1328d9a461a92667fac445d3bea5 100644 (file)
@@ -6036,33 +6036,6 @@ fs_visitor::dump_instruction(backend_instruction *be_inst, FILE *file)
    fprintf(file, "\n");
 }
 
-/**
- * Possibly returns an instruction that set up @param reg.
- *
- * Sometimes we want to take the result of some expression/variable
- * dereference tree and rewrite the instruction generating the result
- * of the tree.  When processing the tree, we know that the
- * instructions generated are all writing temporaries that are dead
- * outside of this tree.  So, if we have some instructions that write
- * a temporary, we're free to point that temp write somewhere else.
- *
- * Note that this doesn't guarantee that the instruction generated
- * only reg -- it might be the size=4 destination of a texture instruction.
- */
-fs_inst *
-fs_visitor::get_instruction_generating_reg(fs_inst *start,
-                                          fs_inst *end,
-                                          const fs_reg &reg)
-{
-   if (end == start ||
-       end->is_partial_write() ||
-       !reg.equals(end->dst)) {
-      return NULL;
-   } else {
-      return end;
-   }
-}
-
 void
 fs_visitor::setup_fs_payload_gen6()
 {
index 51529e89795e4ba9dca5f6761ce5c09636fbf10f..8ccd165907520235143ad58b7c9c3e7255ad3172 100644 (file)
@@ -83,10 +83,6 @@ public:
    void setup_uniform_clipplane_values();
    void compute_clip_distance();
 
-   fs_inst *get_instruction_generating_reg(fs_inst *start,
-                                          fs_inst *end,
-                                          const fs_reg &reg);
-
    void VARYING_PULL_CONSTANT_LOAD(const brw::fs_builder &bld,
                                    const fs_reg &dst,
                                    const fs_reg &surf_index,