intel/fs: Fix constness of argument of fs_instruction_scheduler::is_compressed().
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 2 Apr 2020 23:18:12 +0000 (16:18 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 29 Apr 2020 06:00:29 +0000 (23:00 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_schedule_instructions.cpp

index a4a6f172c9c00845b8d5f174b905e2678113cece..7c1390b86892146261109aa0c3d661d10c8aaace 100644 (file)
@@ -671,7 +671,7 @@ public:
                             int block_count,
                             instruction_scheduler_mode mode);
    void calculate_deps();
-   bool is_compressed(fs_inst *inst);
+   bool is_compressed(const fs_inst *inst);
    schedule_node *choose_instruction_to_schedule();
    int issue_time(backend_instruction *inst);
    const fs_visitor *v;
@@ -1063,7 +1063,7 @@ instruction_scheduler::add_barrier_deps(schedule_node *n)
  * actually writes 2 MRFs.
  */
 bool
-fs_instruction_scheduler::is_compressed(fs_inst *inst)
+fs_instruction_scheduler::is_compressed(const fs_inst *inst)
 {
    return inst->exec_size == 16;
 }