OSDN Git Service

spirv: Handle any bit size in vector_insert/extract
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 14 Dec 2018 16:54:08 +0000 (10:54 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 8 Jan 2019 00:38:29 +0000 (00:38 +0000)
commit42b2f3e91f6d6c4eead40ef91e5edde68019f23c
treecd529165e4046167915d79ca044f24334e694877
parenta392ddb7810912ad36217849a06481229065cf11
spirv: Handle any bit size in vector_insert/extract

This crops up both in the actual SPIR-V VectorInsert/Extract opcodes as
well as various places where we deal with vector derefs.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_glsl450.c
src/compiler/spirv/vtn_variables.c