From: Eric Engestrom Date: Sat, 22 Jun 2019 17:07:02 +0000 (+0100) Subject: anv: drop MAYBE_UNUSED var X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e1dd6c257534e9020e40db6e592b7318046ede0c;p=mesa.git anv: drop MAYBE_UNUSED var Signed-off-by: Eric Engestrom Reviewed-by: Matt Turner --- diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index 68723378554..9c47c486e0d 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -1695,9 +1695,6 @@ emit_3dstate_wm(struct anv_pipeline *pipeline, struct anv_subpass *subpass, { const struct brw_wm_prog_data *wm_prog_data = get_wm_prog_data(pipeline); - MAYBE_UNUSED uint32_t samples = - multisample ? multisample->rasterizationSamples : 1; - anv_batch_emit(&pipeline->batch, GENX(3DSTATE_WM), wm) { wm.StatisticsEnable = true; wm.LineEndCapAntialiasingRegionWidth = _05pixels; @@ -1760,7 +1757,7 @@ emit_3dstate_wm(struct anv_pipeline *pipeline, struct anv_subpass *subpass, has_color_buffer_write_enabled(pipeline, blend)) wm.ThreadDispatchEnable = true; - if (samples > 1) { + if (multisample && multisample->rasterizationSamples > 1) { wm.MultisampleRasterizationMode = MSRASTMODE_ON_PATTERN; if (wm_prog_data->persample_dispatch) { wm.MultisampleDispatchMode = MSDISPMODE_PERSAMPLE;