diff options
author | Juan A. Suarez Romero <[email protected]> | 2017-08-25 17:31:14 +0200 |
---|---|---|
committer | Juan A. Suarez Romero <[email protected]> | 2017-08-30 08:01:53 +0200 |
commit | a2234614b6a7b53b4f8ba68e0bc9136e4b265d0e (patch) | |
tree | 10082e7c6a28dc7237926b36f4fba6f1c6cbe2d3 /src/intel/vulkan/anv_private.h | |
parent | 88cdf16871a0f1cd8ec3844072051ee38e945600 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r-- | src/intel/vulkan/anv_private.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index b30b71f3367..674bc28cc02 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -1246,10 +1246,10 @@ struct anv_pipeline_binding { uint8_t set; /* Binding in the descriptor set */ - uint8_t binding; + uint32_t binding; /* Index in the binding */ - uint8_t index; + uint32_t index; /* Input attachment index (relative to the subpass) */ uint8_t input_attachment_index; |