intel/vec4: Fix constness of vec4_instruction::reads_flag() and ::writes_flag().
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 22 Feb 2020 09:17:21 +0000 (01:17 -0800)
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_ir_vec4.h

index e1788a35e984d94b187309c1ace1764e143811ef..3f7d9e3e074c844a6001feae50d99b9bdbdafc7e 100644 (file)
@@ -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 &&