spirv: Implement OpCopyObject and OpCopyLogical as blind copies

Graphics / Mesa 3D Graphics Library / Mesa - Jason Ekstrand [jlekstrand.net] - 31 March 2020 17:55 EDT

Because the types etc. are required to logically match, we can just copy-propagate the guts of the vtn_value. This was causing issues with some new CTS tests that are doing an OpCopyObject of a sampler which is a special-cased type in spirv_to_nir. Of course, this is only a partial solution. Ideally, we've got a bit of work to do to make all the composite stuff able to handle all types including images, sampler, and combined image/samplers but this gets some CTS tests passing.

Cc: mesa-stable@lists.freedesktop.org

7a53e67816e spirv: Implement OpCopyObject and OpCopyLogical as blind copies
src/compiler/spirv/spirv_to_nir.c | 26 +++++++++++++++++++++++---
1 file changed, 23 insertions(+), 3 deletions(-)

Upstream: cgit.freedesktop.org


  • Share