[Mesa-dev] [PATCH 2/2] i965: silence coverity warning

Jason Ekstrand jason at jlekstrand.net
Mon Oct 9 14:56:52 UTC 2017


Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

On Mon, Oct 9, 2017 at 7:37 AM, Lionel Landwerlin <
lionel.g.landwerlin at intel.com> wrote:

> Also makes this statement a bit clearer.
>
> CID: 1418920
> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> ---
>  src/mesa/drivers/dri/i965/brw_draw.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_draw.c
> b/src/mesa/drivers/dri/i965/brw_draw.c
> index c7ed7284501..7ebed98fcef 100644
> --- a/src/mesa/drivers/dri/i965/brw_draw.c
> +++ b/src/mesa/drivers/dri/i965/brw_draw.c
> @@ -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;
> --
> 2.14.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171009/cad99e61/attachment.html>


More information about the mesa-dev mailing list