spirv: Add a vtn_get_mem_operands() helper
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 17 Aug 2020 17:38:47 +0000 (19:38 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Sep 2020 17:15:22 +0000 (17:15 +0000)
commit857b9c50276141c874c0dba2475afe73ce62a013
tree8d835dddf5a1280e7c86451c84c9850f3cd0185e
parent959539fbbd1fc18fab85b23bb93e0716c170d010
spirv: Add a vtn_get_mem_operands() helper

Add a vtn_get_mem_operands() helper to extract memory operand attached
to load/store operations.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6090>
src/compiler/spirv/vtn_variables.c