浏览代码

intel/fs: Constify fs_inst::can_do_source_mods().

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
tags/19.0-branchpoint
Francisco Jerez 6 年前
父节点
当前提交
b94519971a
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      src/intel/compiler/brw_fs.cpp
  2. 1
    1
      src/intel/compiler/brw_ir_fs.h

+ 1
- 1
src/intel/compiler/brw_fs.cpp 查看文件

@@ -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;

+ 1
- 1
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;

正在加载...
取消
保存