mesa-drm/tests
Dave Stevenson d06ea82901 util: pattern: Fix chroma offset for insert_value_yuv_planar
The chroma offset calculation resulted in the running beyond
the end of the buffer.

eg For ysub=2, y=0 and y=1 should result in writing the same U & V
line, but chroma_offset = (y + 1) / ysub; resulted in them going
to different lines, potentially running off the end of the buffer
and causing a seg fault.

Update the calculation so lines 0 to (ysub-1) all write the same
output line.

Fixes: 40aeab6fd5 ("modetest: util: pattern: add new patterns")
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
2026-03-03 13:12:04 +00:00
..
amdgpu test/amdgpu: remove amdgpu unit tests 2025-10-27 07:32:56 +00:00
etnaviv tests/etnaviv_2d_test: check whether the rendering is correct 2020-12-09 16:00:51 +01:00
exynos fix FTBS on FreeBSD (or non-Linux in general) 2024-06-24 17:24:28 +00:00
modeprint tests: use drmModeGetConnectorTypeName 2022-07-02 20:13:29 +00:00
modetest modetest: util: add seed argument for noise patterns 2025-06-09 09:31:02 +02:00
nouveau use standard __typeof__() instead of GNU extension typeof() 2022-01-19 16:08:31 -08:00
proptest tests: Make modetest and proptest cc_binary in Android.bp 2024-08-01 10:09:05 -04:00
radeon Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
tegra tests: tegra: Add VIC flip test 2022-02-23 16:06:49 +01:00
ttmtest fix various typos 2019-04-17 18:23:25 +01:00
util util: pattern: Fix chroma offset for insert_value_yuv_planar 2026-03-03 13:12:04 +00:00
vbltest meson: always define whether headers exist 2020-01-23 17:00:12 +00:00
Android.bp modetest: Make modetest availble to vendor on Android 2024-10-29 10:49:10 -06:00
drmdevice.c xf86drm: Fix drmDevicesEqual() for nodes on the faux bus 2025-10-14 19:38:10 +03:00
drmsl.c drmsltest: Check expected neighbours 2017-08-21 13:05:13 +01:00
hash.c tests/hash: return non-zero on failure 2015-04-05 15:33:06 +01:00
meson.build libkms: Remove libkms completely 2022-04-15 22:40:29 +00:00