mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 22:20:14 +01:00
etnaviv/ml: Drop duplicated function reorder_for_hw_depthwise()
This function is unused, remove it. An identical copy is found (and used) in etnaviv_ml_nn.c. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34471>
This commit is contained in:
parent
8ea46b14fa
commit
13a120d13c
1 changed files with 0 additions and 18 deletions
|
|
@ -154,24 +154,6 @@ etna_ml_calculate_tiling_v8(struct etna_context *ctx, const struct etna_operatio
|
||||||
return superblocks;
|
return superblocks;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
reorder_for_hw_depthwise(struct etna_ml_subgraph *subgraph, struct etna_operation *operation)
|
|
||||||
{
|
|
||||||
struct pipe_context *context = subgraph->base.context;
|
|
||||||
uint8_t *input = map_resource(operation->weight_tensor);
|
|
||||||
struct pipe_resource *output_res = etna_ml_create_resource(context, pipe_buffer_size(operation->weight_tensor));
|
|
||||||
uint8_t (*output)[operation->weight_width * operation->weight_height] = (void *)map_resource(output_res);
|
|
||||||
|
|
||||||
for (int i = 0; i < operation->weight_height * operation->weight_width * operation->output_channels; i++) {
|
|
||||||
unsigned out_channel = i % operation->output_channels;
|
|
||||||
|
|
||||||
output[out_channel][i / operation->output_channels] = input[i];
|
|
||||||
}
|
|
||||||
|
|
||||||
pipe_resource_reference(&operation->weight_tensor, NULL);
|
|
||||||
operation->weight_tensor = output_res;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct bitstream {
|
struct bitstream {
|
||||||
unsigned bits_in_buffer;
|
unsigned bits_in_buffer;
|
||||||
uint64_t buffer;
|
uint64_t buffer;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue