From: Francisco Jerez Date: Fri, 9 Nov 2018 22:13:37 +0000 (-0800) Subject: intel/fs: Fix constness of implied_mrf_writes() argument. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2ae65c7d93bb95dc8dbd14b61e58d60cfcee932;p=mesa.git intel/fs: Fix constness of implied_mrf_writes() argument. Reviewed-by: Caio Marcelo de Oliveira Filho Reviewed-by: Jordan Justen Reviewed-by: Kenneth Graunke --- diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index ebe3ee89816..30a95b419f0 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -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; diff --git a/src/intel/compiler/brw_fs.h b/src/intel/compiler/brw_fs.h index 0701c274adc..4d5cdd0c013 100644 --- a/src/intel/compiler/brw_fs.h +++ b/src/intel/compiler/brw_fs.h @@ -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);