[Mesa-dev] [PATCH 13/17] i965/vs: rename vec4_generator::generate_vs_instruction.

Paul Berry stereotype441 at gmail.com
Sun Apr 7 15:54:06 PDT 2013


Since this function is going to get used for geometry shaders too, it
deserves a more generic name: generate_vec4_instruction.
---
 src/mesa/drivers/dri/i965/brw_vec4.h        | 6 +++---
 src/mesa/drivers/dri/i965/brw_vec4_emit.cpp | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h b/src/mesa/drivers/dri/i965/brw_vec4.h
index 9fc4e64..f463739 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.h
+++ b/src/mesa/drivers/dri/i965/brw_vec4.h
@@ -532,9 +532,9 @@ public:
 
 private:
    void generate_code(exec_list *instructions);
-   void generate_vs_instruction(vec4_instruction *inst,
-				struct brw_reg dst,
-				struct brw_reg *src);
+   void generate_vec4_instruction(vec4_instruction *inst,
+                                  struct brw_reg dst,
+                                  struct brw_reg *src);
 
    void generate_math1_gen4(vec4_instruction *inst,
 			    struct brw_reg dst,
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp b/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
index 847bb2b..7c3cda5 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
@@ -613,9 +613,9 @@ vec4_generator::generate_pull_constant_load(vec4_instruction *inst,
 }
 
 void
-vec4_generator::generate_vs_instruction(vec4_instruction *instruction,
-                                        struct brw_reg dst,
-                                        struct brw_reg *src)
+vec4_generator::generate_vec4_instruction(vec4_instruction *instruction,
+                                          struct brw_reg dst,
+                                          struct brw_reg *src)
 {
    vec4_instruction *inst = (vec4_instruction *)instruction;
 
@@ -865,7 +865,7 @@ vec4_generator::generate_code(exec_list *instructions)
 	 break;
 
       default:
-	 generate_vs_instruction(inst, dst, src);
+	 generate_vec4_instruction(inst, dst, src);
 	 break;
       }
 
-- 
1.8.2



More information about the mesa-dev mailing list