i965/vec4: Rename depends_on_flags() to reads_flag().
authorMatt Turner <mattst88@gmail.com>
Wed, 12 Mar 2014 07:16:24 +0000 (00:16 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 24 Mar 2014 18:06:25 +0000 (11:06 -0700)
To be consistent with the fs backend.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
src/mesa/drivers/dri/i965/brw_vec4.h

index e86c258cc5e06d6d720c85a8d3ae901cb7bc8526..a9514594e86f24219f9a538fb24ceb69bbeafd7f 100644 (file)
@@ -1034,7 +1034,7 @@ vec4_instruction_scheduler::calculate_deps()
          add_dep(last_mrf_write[inst->base_mrf + i], n);
       }
 
-      if (inst->depends_on_flags()) {
+      if (inst->reads_flag()) {
          assert(last_conditional_mod);
          add_dep(last_conditional_mod, n);
       }
@@ -1105,7 +1105,7 @@ vec4_instruction_scheduler::calculate_deps()
          add_dep(n, last_mrf_write[inst->base_mrf + i], 2);
       }
 
-      if (inst->depends_on_flags()) {
+      if (inst->reads_flag()) {
          add_dep(n, last_conditional_mod);
       }
 
index 6ea3ca4de94ad6bea5b729f603402266da7034a6..5e5ef036a66ef3b1be90c7c5babd27d0e8aadb4f 100644 (file)
@@ -267,7 +267,7 @@ public:
    bool can_reswizzle_dst(int dst_writemask, int swizzle, int swizzle_mask);
    void reswizzle_dst(int dst_writemask, int swizzle);
 
-   bool depends_on_flags()
+   bool reads_flag()
    {
       return predicate || opcode == VS_OPCODE_UNPACK_FLAGS_SIMD4X2;
    }