From: Emil Velikov Date: Fri, 19 Jan 2018 15:57:50 +0000 (+0000) Subject: i965: make brw_context::num_samples unsigned int X-Git-Tag: upstream/18.1.0~2473 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9bb067e27cd1d249cede580c50e7e2fc1eef372;p=platform%2Fupstream%2Fmesa.git i965: make brw_context::num_samples unsigned int It is never a negative number. Variable is compared against unsigned values and passed into functions that expect unsigned int. Signed-off-by: Emil Velikov Reviewed-by: Jason Ekstrand --- diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index d00fe35..4b78508 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -980,7 +980,7 @@ struct brw_context * Number of samples in ctx->DrawBuffer, updated by BRW_NEW_NUM_SAMPLES so * that we don't have to reemit that state every time we change FBOs. */ - int num_samples; + unsigned int num_samples; /* BRW_NEW_URB_ALLOCATIONS: */