genxml/gen8,9: Prefix the multisample format enum with MSFMT
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 3 Jun 2016 01:43:59 +0000 (18:43 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 22 Jun 2016 19:26:43 +0000 (12:26 -0700)
This is what gen7 does and it's nice to have a prefix

Reviewed-by: Chad Versace <chad.versace@intel.com>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/intel/genxml/gen8.xml
src/intel/genxml/gen9.xml
src/intel/isl/isl_surface_state.c

index 1d6a43f9ed168b86aed5d9cd4cf05083803b7dc1..09671ba51814ef85a75d22e56fa3963e16914aad 100644 (file)
     <field name="Minimum Array Element" start="146" end="156" type="uint"/>
     <field name="Render Target View Extent" start="135" end="145" type="uint"/>
     <field name="Multisampled Surface Storage Format" start="134" end="134" type="uint">
-      <value name="MSS" value="0"/>
-      <value name="DEPTH_STENCIL" value="1"/>
+      <value name="MSFMT_MSS" value="0"/>
+      <value name="MSFMT_DEPTH_STENCIL" value="1"/>
     </field>
     <field name="Number of Multisamples" start="131" end="133" type="uint">
       <value name="MULTISAMPLECOUNT_1" value="0"/>
index 2c01c568988ca4110a64ec32f07a0e21fb26a44d..f527838fbfd19f992844b78f3a4c64a717e3c0ba 100644 (file)
     <field name="Minimum Array Element" start="146" end="156" type="uint"/>
     <field name="Render Target View Extent" start="135" end="145" type="uint"/>
     <field name="Multisampled Surface Storage Format" start="134" end="134" type="uint">
-      <value name="MSS" value="0"/>
-      <value name="DEPTH_STENCIL" value="1"/>
+      <value name="MSFMT_MSS" value="0"/>
+      <value name="MSFMT_DEPTH_STENCIL" value="1"/>
     </field>
     <field name="Number of Multisamples" start="131" end="133" type="uint">
       <value name="MULTISAMPLECOUNT_1" value="0"/>
index e96d3b05c3c5d3d5bef4c47667787983875ebd15..51c5953af25752559d17f83119fae31dec187c14 100644 (file)
@@ -76,19 +76,11 @@ static const uint8_t isl_to_gen_tiling[] = {
 };
 #endif
 
-#if GEN_GEN >= 8
-static const uint32_t isl_to_gen_multisample_layout[] = {
-   [ISL_MSAA_LAYOUT_NONE]           = MSS,
-   [ISL_MSAA_LAYOUT_INTERLEAVED]    = DEPTH_STENCIL,
-   [ISL_MSAA_LAYOUT_ARRAY]          = MSS,
-};
-#else
 static const uint32_t isl_to_gen_multisample_layout[] = {
    [ISL_MSAA_LAYOUT_NONE]           = MSFMT_MSS,
    [ISL_MSAA_LAYOUT_INTERLEAVED]    = MSFMT_DEPTH_STENCIL,
    [ISL_MSAA_LAYOUT_ARRAY]          = MSFMT_MSS,
 };
-#endif
 
 static uint8_t
 get_surftype(enum isl_surf_dim dim, isl_surf_usage_flags_t usage)