i965/vec4: Make with_writemask() non-static.
authorPaul Berry <stereotype441@gmail.com>
Sun, 1 Sep 2013 03:51:48 +0000 (20:51 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 5 Sep 2013 16:52:38 +0000 (09:52 -0700)
This will allow it to be shared between brw_vec4_visitor.cpp and
brw_vec4_vs_visitor.cpp (which will be created in the next patch).

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index 8cb884f8f2d86b60494cead00090a78544f41a35..c5101d3900780d6285060b18caede5f8545f4915 100644 (file)
@@ -183,6 +183,9 @@ public:
    src_reg *reladdr;
 };
 
+dst_reg
+with_writemask(dst_reg const &r, int mask);
+
 class vec4_instruction : public backend_instruction {
 public:
    /* Callers of this ralloc-based new need not call delete. It's
index 6771630d30c5a8f9c686fa7b2c3dd96163b81603..e3bbf91aad686c2155613828447389f9f535115c 100644 (file)
@@ -908,7 +908,7 @@ vec4_visitor::emit_if_gen6(ir_if *ir)
    emit(IF(this->result, src_reg(0), BRW_CONDITIONAL_NZ));
 }
 
-static dst_reg
+dst_reg
 with_writemask(dst_reg const & r, int mask)
 {
    dst_reg result = r;