From: Eric Anholt Date: Thu, 9 Jul 2020 18:07:42 +0000 (-0700) Subject: intel: Fix release-build warnings about sf_entry_size. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=afe07c7fa7ce455372eb711673d257090449d26f;p=mesa.git 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: --- 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