spirv: handle OpCopyObject correctly with any types

Graphics / Mesa 3D Graphics Library / Mesa - Samuel Pitoiset [gmail.com] - 15 May 2020 19:18 EDT

This implements OpCopyObject as a blind copy and propagates the access mask properly even if the source object type isn't a SSA
value.

This fixes some recent dEQP-VK.descriptor_indexing.* failures since CTS changed and now apply nonUniformEXT after constructing a combined image/sampler.

Original patch is from Jason Ekstrand.

844d561c580 spirv: handle OpCopyObject correctly with any types
src/compiler/spirv/spirv_to_nir.c | 4 +++-
src/compiler/spirv/vtn_private.h | 4 ++++
src/compiler/spirv/vtn_variables.c | 35 ++++++++++++++++++++++++++++++-----
3 files changed, 37 insertions(+), 6 deletions(-)

Upstream: cgit.freedesktop.org


  • Share