spirv: Do implicit conversions of uint to bool in OpStore
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 3 Jan 2018 17:26:18 +0000 (09:26 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 8 Jan 2018 22:57:44 +0000 (14:57 -0800)
commit9e5aaa93cb242d8e401d61156809082dae86ed03
tree240ed850156044dec5c80eb5b13495223aa5ce45
parent154668e79c4556ba0eda4751d6a14a45b9242a90
spirv: Do implicit conversions of uint to bool in OpStore

Technically, the GLSLang bug related to this can also affect SSBO writes
where the bool -> uint conversion is missing.  However, the only known
shipping application with an old enough version of GLSLang to cause
issues with this is the new DOOM game so we keep the workaround as small
as possible.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104424
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/compiler/spirv/vtn_variables.c