From: Chad Versace Date: Tue, 14 Jun 2016 23:20:07 +0000 (-0700) Subject: anv: Fix a harmless overflow warning X-Git-Tag: upstream/17.1.0~8719 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c99a0a8bcece2870f3e93328ab520efc2c9f7983;p=platform%2Fupstream%2Fmesa.git anv: Fix a harmless overflow warning anv_pipeline_binding::index is a uint8_t, but some code assigned to it UINT16_MAX. Reviewed-by: Anuj Phogat Reviewd-by: Jason Ekstrand --- diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 60b7c6b..b41e11e 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -664,7 +664,7 @@ anv_pipeline_compile_fs(struct anv_pipeline *pipeline, rt_bindings[0] = (struct anv_pipeline_binding) { .set = ANV_DESCRIPTOR_SET_COLOR_ATTACHMENTS, .binding = 0, - .index = UINT16_MAX, + .index = UINT8_MAX, }; num_rts = 1; }