Mesa (master): i965: Fix = vs == in MCS aux usage assert.
Kenneth Graunke
kwg at kemper.freedesktop.org
Wed Jul 26 05:20:17 UTC 2017
Module: Mesa
Branch: master
Commit: 698636cc9762f090b75fd0421db7e654609e7715
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=698636cc9762f090b75fd0421db7e654609e7715
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Tue Jul 25 10:22:01 2017 -0700
i965: Fix = vs == in MCS aux usage assert.
Caught by Coverity (CID 1415680).
Cc: "17.2" <mesa-stable at lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
---
src/mesa/drivers/dri/i965/brw_blorp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c
index 36f7ed2a39..a0f37780ef 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp.c
+++ b/src/mesa/drivers/dri/i965/brw_blorp.c
@@ -1103,7 +1103,7 @@ brw_blorp_mcs_partial_resolve(struct brw_context *brw,
DBG("%s to mt %p layers %u-%u\n", __FUNCTION__, mt,
start_layer, start_layer + num_layers - 1);
- assert(mt->aux_usage = ISL_AUX_USAGE_MCS);
+ assert(mt->aux_usage == ISL_AUX_USAGE_MCS);
const mesa_format format = _mesa_get_srgb_format_linear(mt->format);
enum isl_format isl_format = brw_blorp_to_isl_format(brw, format, true);
More information about the mesa-commit
mailing list