mesa/src/etnaviv
Maíra Canal c4a1d9583c
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
etnaviv/ml: derive stride-2 destriding offsets from padding
The destriding lowering hard-coded a special case for weight_width == 5
with a fallback "+1" branch that was only correct for 3x3 kernels.
Replace it with formulas derived from TFLite's SAME-padding rule for
stride 2:

The half-resolution expansion applied to the reshuffle output and to
the strided_to_normal() input is:

  weight_width / 2

which gives 1 for 3x3, 2 for 5x5, and 3 for 7x7 kernels.

The reshuffle window start offset is:

  (weight_width + input_width % 2 - 2) / 2

This folds the previous odd-input fixup into the same expression
preserves the existing 3x3 and 5x5 behavior while extending the
lowering to wider odd kernels such as 7x7.

Fixes Models.Op/inception_000, which uses Inception V1's Conv2d_1a_7x7,
in the Teflon test suite.

Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41774>
2026-06-02 08:13:11 +00:00
..
ci etnaviv/ml: derive stride-2 destriding offsets from padding 2026-06-02 08:13:11 +00:00
common etnaviv: hwdb: Add WIDELINE_TRIANGLE_EMU cap 2026-03-01 11:34:56 +00:00
drm etnaviv: initialize value before calling etna_gpu_get_param(), in case it fails 2026-05-18 14:44:21 +00:00
drm-shim build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
hw etnaviv: Update headers from rnndb 2026-01-19 11:34:10 +00:00
hwdb etnaviv: hwdb: Add WIDELINE_TRIANGLE_EMU cap 2026-03-01 11:34:56 +00:00
isa etnaviv: Remove f32_to_f16_fallback() in favor of float16::F16 2026-05-29 05:13:24 +00:00
meson.build build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00