i965: make brw_context::num_samples unsigned int
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 19 Jan 2018 15:57:50 +0000 (15:57 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 22 Jan 2018 16:31:57 +0000 (16:31 +0000)
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 <emil.velikov@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_context.h

index d00fe35..4b78508 100644 (file)
@@ -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:
     */