i965: Fix = vs == in MCS aux usage assert.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 25 Jul 2017 17:22:01 +0000 (10:22 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 26 Jul 2017 05:14:21 +0000 (22:14 -0700)
Caught by Coverity (CID 1415680).

Cc: "17.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_blorp.c

index 36f7ed2a39de05c385b4bc627a4300ea31eb44df..a0f37780ef5b274d4b5e25c49d008b4b8bb5e92b 100644 (file)
@@ -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);