[Mesa-dev] [PATCH 1/2] anv: gen7: rename rasterization state variable

Lionel Landwerlin llandwerlin at gmail.com
Fri Aug 5 22:51:33 UTC 2016


Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Cc: anuj.phogat at gmail.com
---
 src/intel/vulkan/gen7_pipeline.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/intel/vulkan/gen7_pipeline.c b/src/intel/vulkan/gen7_pipeline.c
index 6acdd85..c2a38ac 100644
--- a/src/intel/vulkan/gen7_pipeline.c
+++ b/src/intel/vulkan/gen7_pipeline.c
@@ -36,7 +36,7 @@
 
 static void
 gen7_emit_rs_state(struct anv_pipeline *pipeline,
-                   const VkPipelineRasterizationStateCreateInfo *info,
+                   const VkPipelineRasterizationStateCreateInfo *rs_info,
                    const struct anv_graphics_pipeline_create_info *extra)
 {
    struct GENX(3DSTATE_SF) sf = {
@@ -45,13 +45,13 @@ gen7_emit_rs_state(struct anv_pipeline *pipeline,
       /* LegacyGlobalDepthBiasEnable */
 
       .StatisticsEnable                         = true,
-      .FrontFaceFillMode                        = vk_to_gen_fillmode[info->polygonMode],
-      .BackFaceFillMode                         = vk_to_gen_fillmode[info->polygonMode],
+      .FrontFaceFillMode                        = vk_to_gen_fillmode[rs_info->polygonMode],
+      .BackFaceFillMode                         = vk_to_gen_fillmode[rs_info->polygonMode],
       .ViewTransformEnable                      = !(extra && extra->use_rectlist),
-      .FrontWinding                             = vk_to_gen_front_face[info->frontFace],
+      .FrontWinding                             = vk_to_gen_front_face[rs_info->frontFace],
       /* bool                                         AntiAliasingEnable; */
 
-      .CullMode                                 = vk_to_gen_cullmode[info->cullMode],
+      .CullMode                                 = vk_to_gen_cullmode[rs_info->cullMode],
 
       /* uint32_t                                     LineEndCapAntialiasingRegionWidth; */
       .ScissorRectangleEnable                   =  !(extra && extra->use_rectlist),
@@ -67,9 +67,9 @@ gen7_emit_rs_state(struct anv_pipeline *pipeline,
       /* uint32_t                                     VertexSubPixelPrecisionSelect; */
       .UsePointWidthState                       = false,
       .PointWidth                               = 1.0,
-      .GlobalDepthOffsetEnableSolid             = info->depthBiasEnable,
-      .GlobalDepthOffsetEnableWireframe         = info->depthBiasEnable,
-      .GlobalDepthOffsetEnablePoint             = info->depthBiasEnable,
+      .GlobalDepthOffsetEnableSolid             = rs_info->depthBiasEnable,
+      .GlobalDepthOffsetEnableWireframe         = rs_info->depthBiasEnable,
+      .GlobalDepthOffsetEnablePoint             = rs_info->depthBiasEnable,
    };
 
    GENX(3DSTATE_SF_pack)(NULL, &pipeline->gen7.sf, &sf);
-- 
2.8.1



More information about the mesa-dev mailing list