broadcom/vc5: Rename V3D 3.x Flat Shade Action to match v4.x naming.
authorEric Anholt <eric@anholt.net>
Fri, 12 Jan 2018 20:24:36 +0000 (12:24 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 13 Jan 2018 05:57:45 +0000 (21:57 -0800)
Now that the actions are reused for centroid and nonperspective, give them
a more generic name.

src/broadcom/cle/v3d_packet_v33.xml
src/gallium/drivers/vc5/vc5_emit.c

index 6be632112a2dfd170d01396a3b90c8f3be16093a..aac9fbfd28fa4e7d0c97bafabb98288261966de9 100644 (file)
@@ -92,7 +92,7 @@
     <value name="ANISOTROPIC_16_1" value="15"/>
   </enum>
 
-  <enum name="Flat Shade Action" prefix="V3D_FLAT_SHADE_ACTION">
+  <enum name="Varying Flags Action" prefix="V3D_VARYING_FLAGS_ACTION">
     <value name="unchanged" value="0"/>
     <value name="zeroed" value="1"/>
     <value name="set" value="2"/>
 
   <packet code="98" name="Flat Shade Flags">
     <field name="Flat Shade Flags for varyings V0*24" size="24" start="8" type="uint"/>
-    <field name="Action for Flat Shade Flags of higher numbered varyings" size="2" start="6" type="Flat Shade Action"/>
-    <field name="Action for Flat Shade Flags of lower numbered varyings" size="2" start="4" type="Flat Shade Action"/>
+    <field name="Action for Flat Shade Flags of higher numbered varyings" size="2" start="6" type="Varying Flags Action"/>
+    <field name="Action for Flat Shade Flags of lower numbered varyings" size="2" start="4" type="Varying Flags Action"/>
     <field name="Varying offset V0" size="4" start="0" type="uint"/>
   </packet>
 
index b4486ef9268b955d0c95b50b0f6c1f76f4167972..53fa01b3f42473d1a96c1355f4d84f308b8cc1f1 100644 (file)
@@ -520,17 +520,17 @@ vc5_emit_state(struct pipe_context *pctx)
 
                                 if (emitted_any) {
                                         flags.action_for_flat_shade_flags_of_lower_numbered_varyings =
-                                                V3D_FLAT_SHADE_ACTION_UNCHANGED;
+                                                V3D_VARYING_FLAGS_ACTION_UNCHANGED;
                                         flags.action_for_flat_shade_flags_of_higher_numbered_varyings =
-                                                V3D_FLAT_SHADE_ACTION_UNCHANGED;
+                                                V3D_VARYING_FLAGS_ACTION_UNCHANGED;
                                 } else {
                                         flags.action_for_flat_shade_flags_of_lower_numbered_varyings =
                                                 ((i == 0) ?
-                                                 V3D_FLAT_SHADE_ACTION_UNCHANGED :
-                                                 V3D_FLAT_SHADE_ACTION_ZEROED);
+                                                 V3D_VARYING_FLAGS_ACTION_UNCHANGED :
+                                                 V3D_VARYING_FLAGS_ACTION_ZEROED);
 
                                         flags.action_for_flat_shade_flags_of_higher_numbered_varyings =
-                                                V3D_FLAT_SHADE_ACTION_ZEROED;
+                                                V3D_VARYING_FLAGS_ACTION_ZEROED;
                                 }
 
                                 flags.flat_shade_flags_for_varyings_v024 =