aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/gen8_pipeline.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel/vulkan/gen8_pipeline.c')
-rw-r--r--src/intel/vulkan/gen8_pipeline.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/intel/vulkan/gen8_pipeline.c b/src/intel/vulkan/gen8_pipeline.c
index 65339b992f2..e09d8cf628a 100644
--- a/src/intel/vulkan/gen8_pipeline.c
+++ b/src/intel/vulkan/gen8_pipeline.c
@@ -45,55 +45,6 @@ emit_ia_state(struct anv_pipeline *pipeline,
}
static void
-emit_rs_state(struct anv_pipeline *pipeline,
- const VkPipelineRasterizationStateCreateInfo *info,
- const struct anv_graphics_pipeline_create_info *extra)
-{
- struct GENX(3DSTATE_SF) sf = {
- GENX(3DSTATE_SF_header),
- };
-
- sf.ViewportTransformEnable = !(extra && extra->use_rectlist);
- sf.StatisticsEnable = true;
- sf.TriangleStripListProvokingVertexSelect = 0;
- sf.LineStripListProvokingVertexSelect = 0;
- sf.TriangleFanProvokingVertexSelect = 1;
- sf.PointWidthSource = Vertex;
- sf.PointWidth = 1.0;
-
- GENX(3DSTATE_SF_pack)(NULL, pipeline->gen8.sf, &sf);
-
- struct GENX(3DSTATE_RASTER) raster = {
- GENX(3DSTATE_RASTER_header),
- };
-
- /* For details on 3DSTATE_RASTER multisample state, see the BSpec table
- * "Multisample Modes State".
- */
- raster.DXMultisampleRasterizationEnable = true;
- raster.ForcedSampleCount = FSC_NUMRASTSAMPLES_0;
- raster.ForceMultisampling = false;
-
- raster.FrontWinding = vk_to_gen_front_face[info->frontFace];
- raster.CullMode = vk_to_gen_cullmode[info->cullMode];
- raster.FrontFaceFillMode = vk_to_gen_fillmode[info->polygonMode];
- raster.BackFaceFillMode = vk_to_gen_fillmode[info->polygonMode];
- raster.ScissorRectangleEnable = !(extra && extra->use_rectlist);
-#if GEN_GEN == 8
- raster.ViewportZClipTestEnable = !pipeline->depth_clamp_enable;
-#else
- /* GEN9+ splits ViewportZClipTestEnable into near and far enable bits */
- raster.ViewportZFarClipTestEnable = !pipeline->depth_clamp_enable;
- raster.ViewportZNearClipTestEnable = !pipeline->depth_clamp_enable;
-#endif
- raster.GlobalDepthOffsetEnableSolid = info->depthBiasEnable;
- raster.GlobalDepthOffsetEnableWireframe = info->depthBiasEnable;
- raster.GlobalDepthOffsetEnablePoint = info->depthBiasEnable;
-
- GENX(3DSTATE_RASTER_pack)(NULL, pipeline->gen8.raster, &raster);
-}
-
-static void
emit_ms_state(struct anv_pipeline *pipeline,
const VkPipelineMultisampleStateCreateInfo *info)
{