summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_formats.c
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2016-10-06 14:12:27 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2016-11-24 16:34:42 +0000
commite692630755825afdac2873b676e785da13ae01af (patch)
tree7834ff3e83d99fd1dd88f9a547af77d3cb05d427 /src/intel/vulkan/anv_formats.c
parentc10e1fb4408317c15886c0dadc80d7dce7ab23ff (diff)
downloadexternal_mesa3d-e692630755825afdac2873b676e785da13ae01af.zip
external_mesa3d-e692630755825afdac2873b676e785da13ae01af.tar.gz
external_mesa3d-e692630755825afdac2873b676e785da13ae01af.tar.bz2
anv: fix enumeration of properties
Driver should enumerate only up-to min2(num_available, num_requested) properties and return VK_INCOMPLETE if the # of requested props is smaller than the ones available. Presently we assert out in such cases. Inspired by a similar fix for RADV. v2: Use MIN2 + typed_memcpy (Jason). Should fix: dEQP-VK.api.info.device.extensions Cc: "13.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> (v1) Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> (cherry picked from commit 5cc07d854c85e30c5aa1ced626b4b6500f8cd74c)
Diffstat (limited to 'src/intel/vulkan/anv_formats.c')
0 files changed, 0 insertions, 0 deletions