From b2ae65c7d93bb95dc8dbd14b61e58d60cfcee932 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Fri, 9 Nov 2018 14:13:37 -0800 Subject: [PATCH] intel/fs: Fix constness of implied_mrf_writes() argument. Reviewed-by: Caio Marcelo de Oliveira Filho Reviewed-by: Jordan Justen Reviewed-by: Kenneth Graunke --- src/intel/compiler/brw_fs.cpp | 2 +- src/intel/compiler/brw_fs.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2