[Mesa-dev] [PATCH 06/10] intel/fs: Constify fs_inst::can_do_source_mods().
Francisco Jerez
currojerez at riseup.net
Sat Dec 29 20:39:00 UTC 2018
---
src/intel/compiler/brw_fs.cpp | 2 +-
src/intel/compiler/brw_ir_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 4aacc72a1b7..889509badab 100644
--- a/src/intel/compiler/brw_fs.cpp
+++ b/src/intel/compiler/brw_fs.cpp
@@ -395,7 +395,7 @@ fs_inst::is_copy_payload(const brw::simple_allocator &grf_alloc) const
}
bool
-fs_inst::can_do_source_mods(const struct gen_device_info *devinfo)
+fs_inst::can_do_source_mods(const struct gen_device_info *devinfo) const
{
if (devinfo->gen == 6 && is_math())
return false;
diff --git a/src/intel/compiler/brw_ir_fs.h b/src/intel/compiler/brw_ir_fs.h
index 95b069a2e02..5bb92e4cc86 100644
--- a/src/intel/compiler/brw_ir_fs.h
+++ b/src/intel/compiler/brw_ir_fs.h
@@ -353,7 +353,7 @@ public:
bool is_copy_payload(const brw::simple_allocator &grf_alloc) const;
unsigned components_read(unsigned i) const;
unsigned size_read(int arg) const;
- bool can_do_source_mods(const struct gen_device_info *devinfo);
+ bool can_do_source_mods(const struct gen_device_info *devinfo) const;
bool can_do_cmod();
bool can_change_types() const;
bool has_source_and_destination_hazard() const;
--
2.19.2
More information about the mesa-dev
mailing list