[Mesa-dev] [PATCH 2/3] radv: do not need to zero-init ds/raster states
Samuel Pitoiset
samuel.pitoiset at gmail.com
Fri Oct 6 07:53:20 UTC 2017
Already done when creating the pipeline.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/amd/vulkan/radv_pipeline.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index 5da27935c2..cc33fbc96d 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -932,7 +932,6 @@ radv_pipeline_init_depth_stencil_state(struct radv_pipeline *pipeline,
const VkPipelineDepthStencilStateCreateInfo *vkds = pCreateInfo->pDepthStencilState;
struct radv_depth_stencil_state *ds = &pipeline->graphics.ds;
- memset(ds, 0, sizeof(*ds));
if (!vkds)
return;
@@ -999,8 +998,6 @@ radv_pipeline_init_raster_state(struct radv_pipeline *pipeline,
const VkPipelineRasterizationStateCreateInfo *vkraster = pCreateInfo->pRasterizationState;
struct radv_raster_state *raster = &pipeline->graphics.raster;
- memset(raster, 0, sizeof(*raster));
-
raster->spi_interp_control =
S_0286D4_FLAT_SHADE_ENA(1) |
S_0286D4_PNT_SPRITE_ENA(1) |
--
2.14.2
More information about the mesa-dev
mailing list