mesa-drm/tests/util
Huang Rui 9ea8a8e93d modetest: fix build error on is_power_of_two()
The inline function is_power_of_two should be set as static since it's
only called in pattern.c, otherwise it will encounter below build error.

[114/136] Linking target tests/modetest/modetest
FAILED: tests/modetest/modetest
cc  -o tests/modetest/modetest tests/modetest/modetest.p/buffers.c.o tests/modetest/modetest.p/cursor.c.o tests/modetest/modetest.p/modetest.c.o -Wl,--as-needed -Wl,--no-undefined -fno-omit-frame-pointer '-Wl,-rpath,$ORIGIN/../..' -Wl,-rpath-link,/home/ray/repo/drm/build/ -Wl,--start-group libdrm.so.2.125.0 tests/util/libutil.a -lm -pthread /usr/lib/x86_64-linux-gnu/libcairo.so -Wl,--end-group
/usr/bin/ld: tests/util/libutil.a.p/pattern.c.o: in function `check_yuv':
/home/ray/repo/drm/build/../tests/util/pattern.c:1989: undefined reference to `is_power_of_two'
/usr/bin/ld: /home/ray/repo/drm/build/../tests/util/pattern.c:1990: undefined reference to `is_power_of_two'
/usr/bin/ld: /home/ray/repo/drm/build/../tests/util/pattern.c:1991: undefined reference to `is_power_of_two'
collect2: error: ld returned 1 exit status

Signed-off-by: Huang Rui <ray.huang@amd.com>
2025-07-14 14:45:14 +08:00
..
Android.bp modetest: Make modetest availble to vendor on Android 2024-10-29 10:49:10 -06:00
Android.sources.bp Convert to Android.bp 2024-07-29 14:47:30 -04:00
common.h tests: Split helpers into library 2015-12-18 17:43:40 +00:00
format.c modetest: add support for YUV422 and YUV444 plane format 2024-09-23 21:11:29 +02:00
format.h util: store number of colors for indexed formats 2023-10-24 09:44:21 +02:00
kms.c tests/util: Call drmGetDevices2() instead of drmOpen()ing all modules 2024-09-03 13:30:41 +02:00
kms.h tests: use drmModeGetConnectorTypeName 2022-07-02 20:13:29 +00:00
meson.build Add meson build system 2018-01-12 09:40:48 -08:00
pattern.c modetest: fix build error on is_power_of_two() 2025-07-14 14:45:14 +08:00
pattern.h modetest: util: add seed argument for noise patterns 2025-06-09 09:31:02 +02:00