Mesa (master): i965: make brw_context::num_samples unsigned int
Emil Velikov
evelikov at kemper.freedesktop.org
Mon Jan 22 16:56:38 UTC 2018
Module: Mesa
Branch: master
Commit: a9bb067e27cd1d249cede580c50e7e2fc1eef372
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a9bb067e27cd1d249cede580c50e7e2fc1eef372
Author: Emil Velikov <emil.velikov at collabora.com>
Date: Fri Jan 19 15:57:50 2018 +0000
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 <emil.velikov at collabora.com>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
---
src/mesa/drivers/dri/i965/brw_context.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
index d00fe35108..4b78508ccb 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:
*/
More information about the mesa-commit
mailing list