etnaviv/ml: Disable caching on V8

The assumptions we make on V7 doesnt work as-is on V8.

Revisit this later.

Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31842>
This commit is contained in:
Tomeu Vizoso 2024-10-23 10:22:52 +02:00 committed by Marge Bot
parent 41a9540ab9
commit f186844545

View file

@ -795,6 +795,12 @@ create_nn_config(struct etna_ml_subgraph *subgraph, const struct etna_operation
}
}
/* Caching is not supported yet on V8 */
if (nn_core_version == 8) {
map->kernel_caching_mode = SRAM_CACHE_MODE_NO_CACHE;
map->image_caching_mode = SRAM_CACHE_MODE_NO_CACHE;
}
float conv_scale = (operation->input_scale * operation->weight_scale) / operation->output_scale;
uint32_t scale_bits = fui(conv_scale);
/* Taken from https://github.com/pytorch/QNNPACK/blob/master/src/qnnpack/requantization.h#L130 */