@@ -28,14 +28,14 @@ void add_staging_to_tensor_node(
28
28
vkapi::ShaderInfo shader = get_nchw_to_tensor_shader (
29
29
*graph.get_tensor (out_tensor), graph.int8_buffers_enabled ());
30
30
31
- vkapi::ParamsBindList ubos ;
31
+ std::vector<PushConstantDataInfo> pcs ;
32
32
if (graph.is_buffer_storage (out_tensor)) {
33
- ubos. append (
34
- { graph.sizes_ubo (out_tensor),
35
- graph.strides_ubo (out_tensor),
36
- graph.numel_ubo (out_tensor)}) ;
33
+ pcs = {
34
+ graph.sizes_pc_of (out_tensor),
35
+ graph.strides_pc_of (out_tensor),
36
+ graph.numel_pc_of (out_tensor)};
37
37
} else {
38
- ubos. append ( {graph.sizes_ubo (out_tensor)}) ;
38
+ pcs = {graph.sizes_pc_of (out_tensor)};
39
39
}
40
40
41
41
graph.execute_nodes ().emplace_back (new DispatchNode (
@@ -46,9 +46,9 @@ void add_staging_to_tensor_node(
46
46
// Input and Outputs
47
47
{{out_tensor, vkapi::kWrite }, {in_staging, vkapi::kRead }},
48
48
// Parameter Buffers
49
- ubos,
50
- // Push Constants
51
49
{},
50
+ // Push Constants
51
+ pcs,
52
52
// Specialization Constants
53
53
{graph.hashed_layout_of (out_tensor)},
54
54
// Resize Args
@@ -127,14 +127,14 @@ void add_prepack_standard_node(
127
127
vkapi::ShaderInfo shader = get_nchw_to_tensor_shader (
128
128
*graph.get_tensor (tensor), graph.int8_buffers_enabled ());
129
129
130
- vkapi::ParamsBindList ubos ;
130
+ std::vector<PushConstantDataInfo> pcs ;
131
131
if (graph.is_buffer_storage (tensor)) {
132
- ubos. append (
133
- { graph.sizes_ubo (tensor),
134
- graph.strides_ubo (tensor),
135
- graph.numel_ubo (tensor)}) ;
132
+ pcs = {
133
+ graph.sizes_pc_of (tensor),
134
+ graph.strides_pc_of (tensor),
135
+ graph.numel_pc_of (tensor)};
136
136
} else {
137
- ubos. append ( {graph.sizes_ubo (tensor)}) ;
137
+ pcs = {graph.sizes_pc_of (tensor)};
138
138
}
139
139
140
140
int transpose_hw_spec = transpose_hw ? 1 : 0 ;
@@ -148,9 +148,10 @@ void add_prepack_standard_node(
148
148
tensor_data,
149
149
tensor,
150
150
// Parameter Buffers
151
- ubos ,
151
+ {} ,
152
152
// Specialization Constants
153
- {graph.hashed_layout_of (tensor), transpose_hw_spec}));
153
+ {graph.hashed_layout_of (tensor), transpose_hw_spec},
154
+ pcs));
154
155
}
155
156
156
157
ValueRef prepack_standard (
0 commit comments