summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2018-01-19 15:57:50 +0000
committerEmil Velikov <[email protected]>2018-01-22 16:31:57 +0000
commita9bb067e27cd1d249cede580c50e7e2fc1eef372 (patch)
tree2f92764219954d9cce2aa9dbca73b14955ca6a30 /src/mesa
parentef1df63046d2e129817cd39ca9a91fa7a1e9cf38 (diff)
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 <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
index d00fe351087..4b78508ccb3 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:
*/