@@ -28,14 +28,14 @@ void add_staging_to_tensor_node(
2828  vkapi::ShaderInfo shader = get_nchw_to_tensor_shader (
2929      *graph.get_tensor (out_tensor), graph.int8_buffers_enabled ());
3030
31-   vkapi::ParamsBindList ubos ;
31+   std::vector<PushConstantDataInfo> pcs ;
3232  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)};
3737  } else  {
38-     ubos. append ( {graph.sizes_ubo (out_tensor)}) ;
38+     pcs =  {graph.sizes_pc_of (out_tensor)};
3939  }
4040
4141  graph.execute_nodes ().emplace_back (new  DispatchNode (
@@ -46,9 +46,9 @@ void add_staging_to_tensor_node(
4646      //  Input and Outputs
4747      {{out_tensor, vkapi::kWrite }, {in_staging, vkapi::kRead }},
4848      //  Parameter Buffers
49-       ubos,
50-       //  Push Constants
5149      {},
50+       //  Push Constants
51+       pcs,
5252      //  Specialization Constants
5353      {graph.hashed_layout_of (out_tensor)},
5454      //  Resize Args
@@ -127,14 +127,14 @@ void add_prepack_standard_node(
127127  vkapi::ShaderInfo shader = get_nchw_to_tensor_shader (
128128      *graph.get_tensor (tensor), graph.int8_buffers_enabled ());
129129
130-   vkapi::ParamsBindList ubos ;
130+   std::vector<PushConstantDataInfo> pcs ;
131131  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)};
136136  } else  {
137-     ubos. append ( {graph.sizes_ubo (tensor)}) ;
137+     pcs =  {graph.sizes_pc_of (tensor)};
138138  }
139139
140140  int  transpose_hw_spec = transpose_hw ? 1  : 0 ;
@@ -148,9 +148,10 @@ void add_prepack_standard_node(
148148      tensor_data,
149149      tensor,
150150      //  Parameter Buffers
151-       ubos ,
151+       {} ,
152152      //  Specialization Constants
153-       {graph.hashed_layout_of (tensor), transpose_hw_spec}));
153+       {graph.hashed_layout_of (tensor), transpose_hw_spec},
154+       pcs));
154155}
155156
156157ValueRef prepack_standard (
0 commit comments