vtn: Propagate access data from UBO/SSBO/push constant types to variables of that type, not just their pointers

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10356>
This commit is contained in:
Jesse Natalie
2021-04-19 17:32:55 -07:00
committed by Marge Bot
parent 9936463ef6
commit 1c41f63e26

View File

@@ -1840,6 +1840,7 @@ vtn_create_variable(struct vtn_builder *b, struct vtn_value *val,
var->var->data.mode = nir_mode;
var->var->data.location = -1;
var->var->data.driver_location = 0;
var->var->data.access = var->type->access;
break;
case vtn_variable_mode_workgroup: