anv: set right datatypes in anv_pipeline_binding
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Fri, 25 Aug 2017 15:31:14 +0000 (17:31 +0200)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Wed, 30 Aug 2017 06:01:53 +0000 (08:01 +0200)
commita2234614b6a7b53b4f8ba68e0bc9136e4b265d0e
tree10082e7c6a28dc7237926b36f4fba6f1c6cbe2d3
parent88cdf16871a0f1cd8ec3844072051ee38e945600
anv: set right datatypes in anv_pipeline_binding

This structure contains two fields, binding and index, that store the
binding in the descriptor set and the index inside the binding.

These structures are defined as uint8_t, but the types in Vulkan
specification are uint32_t, so big values are clamp.

This fixes dEQP-VK.binding_model.shader_access.*.multiple_arbitrary_descriptors.*

v2: use UINT32_MAX for index when having no render targets (Tapani)

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/intel/vulkan/anv_pipeline.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_pipeline.c