Mesa (master): intel/vec4: Fix constness of vec4_instruction::reads_flag() and ::writes_flag().
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Apr 29 06:49:41 UTC 2020
Module: Mesa
Branch: master
Commit: c8ce1cfc9c115032aaaede691c5fe6f92c0e6168
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c8ce1cfc9c115032aaaede691c5fe6f92c0e6168
Author: Francisco Jerez <currojerez at riseup.net>
Date: Sat Feb 22 01:17:21 2020 -0800
intel/vec4: Fix constness of vec4_instruction::reads_flag() and ::writes_flag().
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/intel/compiler/brw_ir_vec4.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/intel/compiler/brw_ir_vec4.h b/src/intel/compiler/brw_ir_vec4.h
index e1788a35e98..3f7d9e3e074 100644
--- a/src/intel/compiler/brw_ir_vec4.h
+++ b/src/intel/compiler/brw_ir_vec4.h
@@ -303,7 +303,7 @@ public:
opcode == VEC4_OPCODE_SET_HIGH_32BIT;
}
- bool reads_flag()
+ bool reads_flag() const
{
return predicate || opcode == VS_OPCODE_UNPACK_FLAGS_SIMD4X2;
}
@@ -329,7 +329,7 @@ public:
}
}
- bool writes_flag()
+ bool writes_flag() const
{
return (conditional_mod && (opcode != BRW_OPCODE_SEL &&
opcode != BRW_OPCODE_CSEL &&
More information about the mesa-commit
mailing list