Mesa (master): intel: Fix release-build warnings about sf_entry_size.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jul 17 18:03:00 UTC 2020
Module: Mesa
Branch: master
Commit: afe07c7fa7ce455372eb711673d257090449d26f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=afe07c7fa7ce455372eb711673d257090449d26f
Author: Eric Anholt <eric at anholt.net>
Date: Thu Jul 9 11:07:42 2020 -0700
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 <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5829>
---
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
More information about the mesa-commit
mailing list