genxml: Normalize xml for 3DSTATE_CC_STATE_POINTERS.
authorRafael Antognolli <rafael.antognolli@intel.com>
Wed, 19 Apr 2017 23:13:20 +0000 (16:13 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 3 May 2017 23:41:07 +0000 (16:41 -0700)
   - "COLOR_CALC_STATE Change" -> "Color Calc State Pointer Valid"
   - "Pointer to COLOR_CALC_STATE" -> "Color Calc State Pointer"
   - "BackFace" -> "Backface"

Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/blorp/blorp_genX_exec.h
src/intel/genxml/gen6.xml
src/intel/genxml/gen8.xml
src/intel/vulkan/gen8_cmd_buffer.c

index be22be09ab556c922e6d6cbadb709ee98d23b66f..9e61f69492e8c8bb07d4362f948a19fcbb353fa8 100644 (file)
@@ -1365,10 +1365,10 @@ blorp_exec(struct blorp_batch *batch, const struct blorp_params *params)
     */
    blorp_emit(batch, GENX(3DSTATE_CC_STATE_POINTERS), cc) {
       cc.BLEND_STATEChange = true;
-      cc.COLOR_CALC_STATEChange = true;
+      cc.ColorCalcStatePointerValid = true;
       cc.DEPTH_STENCIL_STATEChange = true;
       cc.PointertoBLEND_STATE = blend_state_offset;
-      cc.PointertoCOLOR_CALC_STATE = color_calc_state_offset;
+      cc.ColorCalcStatePointer = color_calc_state_offset;
       cc.PointertoDEPTH_STENCIL_STATE = depth_stencil_state_offset;
    }
 #else
index a8ce7e06651bfe273494e696da41870b7a2f9ec0..cdcead3498ee0df543be55043d4d637fb050930f 100644 (file)
     <field name="BLEND_STATE Change" start="32" end="32" type="bool"/>
     <field name="Pointer to DEPTH_STENCIL_STATE" start="70" end="95" type="offset"/>
     <field name="DEPTH_STENCIL_STATE Change" start="64" end="64" type="bool"/>
-    <field name="Pointer to COLOR_CALC_STATE" start="102" end="127" type="offset"/>
-    <field name="COLOR_CALC_STATE Change" start="96" end="96" type="bool"/>
+    <field name="Color Calc State Pointer" start="102" end="127" type="offset"/>
+    <field name="Color Calc State Pointer Valid" start="96" end="96" type="bool"/>
   </instruction>
 
   <instruction name="3DSTATE_CHROMA_KEY" bias="2" length="4">
index 7f60ea426b68ec4f4d4ad48c9b7162c6a8d34735..c57ddb41a16af4a688efe168f74be02e4f1d2c20 100644 (file)
 
   <struct name="COLOR_CALC_STATE" length="6">
     <field name="Stencil Reference Value" start="24" end="31" type="uint"/>
-    <field name="BackFace Stencil Reference Value" start="16" end="23" type="uint"/>
+    <field name="Backface Stencil Reference Value" start="16" end="23" type="uint"/>
     <field name="Round Disable Function Disable" start="15" end="15" type="bool"/>
     <field name="Alpha Test Format" start="0" end="0" type="uint">
       <value name="ALPHATEST_UNORM8" value="0"/>
index c891a76723de722db9eb89584403838fd9197fd1..0e26ddaeba22dbb0abcc036c2e276707d1c0c470 100644 (file)
@@ -467,7 +467,7 @@ genX(cmd_buffer_flush_dynamic_state)(struct anv_cmd_buffer *cmd_buffer)
          .BlendConstantColorBlue = cmd_buffer->state.dynamic.blend_constants[2],
          .BlendConstantColorAlpha = cmd_buffer->state.dynamic.blend_constants[3],
          .StencilReferenceValue = d->stencil_reference.front & 0xff,
-         .BackFaceStencilReferenceValue = d->stencil_reference.back & 0xff,
+         .BackfaceStencilReferenceValue = d->stencil_reference.back & 0xff,
       };
       GENX(COLOR_CALC_STATE_pack)(NULL, cc_state.map, &cc);