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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user