summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_pipeline.c
diff options
context:
space:
mode:
authorChad Versace <chad.versace@intel.com>2016-06-14 16:20:07 -0700
committerChad Versace <chad.versace@intel.com>2016-06-15 15:34:13 -0700
commitc99a0a8bcece2870f3e93328ab520efc2c9f7983 (patch)
tree4f6e9e01df7c1ae78998c88cf3ddc928eefe5f71 /src/intel/vulkan/anv_pipeline.c
parent067c5b10b690b949ac28c4aea237f398f8251fff (diff)
downloadexternal_mesa3d-c99a0a8bcece2870f3e93328ab520efc2c9f7983.zip
external_mesa3d-c99a0a8bcece2870f3e93328ab520efc2c9f7983.tar.gz
external_mesa3d-c99a0a8bcece2870f3e93328ab520efc2c9f7983.tar.bz2
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 <anuj.phogat@gmail.com> Reviewd-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/intel/vulkan/anv_pipeline.c')
-rw-r--r--src/intel/vulkan/anv_pipeline.c2
1 files changed, 1 insertions, 1 deletions
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;
}