From afe07c7fa7ce455372eb711673d257090449d26f Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 9 Jul 2020 11:07:42 -0700 Subject: [PATCH] intel: Fix release-build warnings about sf_entry_size. In one side of the ifdef it's only used in an assert. Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/blorp/blorp_genX_exec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/blorp/blorp_genX_exec.h b/src/intel/blorp/blorp_genX_exec.h index 48b1634f300..a8e5eddd6ac 100644 --- a/src/intel/blorp/blorp_genX_exec.h +++ b/src/intel/blorp/blorp_genX_exec.h @@ -209,7 +209,7 @@ emit_urb_config(struct blorp_batch *batch, /* The URB size is expressed in units of 64 bytes (512 bits) */ const unsigned vs_entry_size = DIV_ROUND_UP(total_needed, 64); - const unsigned sf_entry_size = + ASSERTED const unsigned sf_entry_size = params->sf_prog_data ? params->sf_prog_data->urb_entry_size : 0; #if GEN_GEN >= 7 -- 2.30.2