nir/spirv: Add basic support for Op[Group]MemberDecorate

This commit is contained in:
Jason Ekstrand
2015-07-01 14:17:24 -07:00
parent 682eb9489d
commit 7a749aa4ba
2 changed files with 32 additions and 15 deletions

View File

@@ -100,6 +100,7 @@ struct vtn_value {
struct vtn_decoration {
struct vtn_decoration *next;
int member; /* -1 if not a member decoration */
const uint32_t *literals;
struct vtn_value *group;
SpvDecoration decoration;
@@ -168,6 +169,7 @@ struct vtn_ssa_value *vtn_ssa_value(struct vtn_builder *b, uint32_t value_id);
typedef void (*vtn_decoration_foreach_cb)(struct vtn_builder *,
struct vtn_value *,
int member,
const struct vtn_decoration *,
void *);