intel/fs: Constify fs_inst::can_do_source_mods().
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 29 Dec 2018 09:41:09 +0000 (01:41 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 9 Jan 2019 20:03:09 +0000 (12:03 -0800)
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/intel/compiler/brw_fs.cpp
src/intel/compiler/brw_ir_fs.h

index b02a1a1761ef4a48b443d49319197dbb7e2fb225..8981a94b882f7de3d002986dd565fa13ed83e034 100644 (file)
@@ -399,7 +399,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;
index 95b069a2e024b07253f67301874e67574baf8bbc..5bb92e4cc861feacf41f5d9ccb2f1eb51c0fcf70 100644 (file)
@@ -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;