diff options
author | Iago Toral Quiroga <[email protected]> | 2017-07-21 10:26:31 +0200 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2017-08-11 10:41:44 +0200 |
commit | 81615ad444ba970d144eeffbe60a7f70adc30b5b (patch) | |
tree | a30b57712acdc65817ce9e8a2e825021c9d952cb /src/egl/drivers | |
parent | 9d41ec21826b1c19da69a183b3c0ce535bfd7b10 (diff) |
intel/compiler: properly size attribute wa_flags array for Vulkan
Mesa will map user defined vertex input attributes to slots
starting at VERT_ATTRIB_GENERIC0 which gives us room for only 16
slots (up to GL_VERT_ATTRIB_MAX). This sufficient for GL, where
we expose exactly 16 vertex attributes for user defined inputs, but
in Vulkan we can expose up to 28 (which are also mapped from
VERT_ATTRIB_GENERIC0 onwards) so we need to account for this when
we scope the size of the array of attribute workaround flags
that is used during the brw_vertex_workarounds NIR pass. This
prevents out-of-bounds accesses in that array for NIR shaders
that use more than 16 vertex input attributes.
Fixes:
dEQP-VK.pipeline.vertex_input.max_attributes.*
Acked-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/egl/drivers')
0 files changed, 0 insertions, 0 deletions