intel/fs: Fix constness of implied_mrf_writes() argument.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 9 Nov 2018 22:13:37 +0000 (14:13 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 11 Oct 2019 19:24:16 +0000 (12:24 -0700)
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_fs.cpp
src/intel/compiler/brw_fs.h

index ebe3ee898168c4eef9fa6f0cdab0afdad79ef2a7..30a95b419f0b07cefcbf93d2afc8775ad9945cc8 100644 (file)
@@ -1148,7 +1148,7 @@ fs_inst::flags_written() const
  * instruction -- the FS opcodes often generate MOVs in addition.
  */
 int
-fs_visitor::implied_mrf_writes(fs_inst *inst) const
+fs_visitor::implied_mrf_writes(const fs_inst *inst) const
 {
    if (inst->mlen == 0)
       return 0;
index 0701c274adc21ff0a7c788bb2db4d7a1f44b4159..4d5cdd0c0135de1ac963d7d580e66a7f55e139f9 100644 (file)
@@ -299,7 +299,7 @@ public:
 
    fs_reg interp_reg(int location, int channel);
 
-   int implied_mrf_writes(fs_inst *inst) const;
+   int implied_mrf_writes(const fs_inst *inst) const;
 
    virtual void dump_instructions();
    virtual void dump_instructions(const char *name);