i965: silence coverity warning
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 5 Oct 2017 17:13:37 +0000 (18:13 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 9 Oct 2017 23:56:01 +0000 (00:56 +0100)
Also makes this statement a bit clearer.

CID: 1418920
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Antia Puentes <apuentes@igalia.com>
src/mesa/drivers/dri/i965/brw_draw.c

index c7ed7284501867fd5ae9f855166014c7187cf0b1..7ebed98fcefa6b3e9c36ee04400a0bb606d24b82 100644 (file)
@@ -955,7 +955,7 @@ brw_draw_indirect_prims(struct gl_context *ctx,
    prim[draw_count - 1].end = 1;
    for (i = 0; i < draw_count; ++i, indirect_offset += stride) {
       prim[i].mode = mode;
-      prim[i].indexed = !!ib;
+      prim[i].indexed = ib != NULL;
       prim[i].indirect_offset = indirect_offset;
       prim[i].is_indirect = 1;
       prim[i].draw_id = i;