nir/spirv: plumb through the type of dereferences

We need this to know if a deref is of a builtin.
This commit is contained in:
Connor Abbott
2015-07-02 15:49:08 -07:00
parent 66375e2852
commit aca5fc6af1
2 changed files with 25 additions and 16 deletions

View File

@@ -117,7 +117,10 @@ struct vtn_value {
nir_constant *constant;
const struct glsl_type *const_type;
};
nir_deref_var *deref;
struct {
nir_deref_var *deref;
struct vtn_type *deref_type;
};
struct vtn_function *func;
struct vtn_block *block;
struct vtn_ssa_value *ssa;