OSDN Git Service

spirv: Pull offset/stride from the pointer for OpArrayLength
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 12 Jan 2019 16:32:13 +0000 (10:32 -0600)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 14 Mar 2019 19:02:42 +0000 (19:02 +0000)
commit4b372644f35dd2f91fd46b029813be481ae6d3f0
tree19d8b56b3014de5b3ffabbfda4021c0b403e2b5e
parent079c124bcbc9231ef2c5bd9b465f0241902412cd
spirv: Pull offset/stride from the pointer for OpArrayLength

We can't pull it from the variable type because it might be an array of
blocks and not just the one block.  While we're here, throw in some
error checking.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable@lists.freedesktop.org
(cherry picked from commit f1dbc7e97d3dcb2104b9438d32cace9529575208)
src/compiler/spirv/vtn_variables.c