Skip to contentSkip to conversation

lib/igt_fb: Added XYUV format support for testing

PATCH Superseded Stanislav Lisovskiy 2 participants 2 messages Sep 10, 2018 Library code

v4 of 13 Superseded Latest is v13 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 lib/igt_fb: Added XYUV format support for testing

XYUV format support has been added to DRM, modified IGT to reflect those changes.

v2: Fixed merge conflict, started to use new yuv<=>rgb
conversion functions.

v3: Fixed kms_available_modes_crc test to support new XYUV
format. Fixed a problem, where test complains that two outputs might use same pipe at the same time.

v4: Fixed convertion procedure in igt_fb to support XYUV
properly.

---
 include/drm-uapi/drm_fourcc.h |  1 +
 lib/igt_fb.c                  | 89 +++++++++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+)
include/drm-uapi/drm_fourcc.h +1 -0
index e04613d3..0bf66de2 100644
@@ -112,6 +112,7 @@ extern "C" {
 #define DRM_FORMAT_VYUY		fourcc_code('V', 'Y', 'U', 'Y') /* [31:0] Y1:Cb0:Y0:Cr0 8:8:8:8 little endian */
 
 #define DRM_FORMAT_AYUV		fourcc_code('A', 'Y', 'U', 'V') /* [31:0] A:Y:Cb:Cr 8:8:8:8 little endian */
+#define DRM_FORMAT_XYUV		fourcc_code('X', 'Y', 'U', 'V') /* [31:0] X:Y:Cb:Cr 8:8:8:8 little endian */
 
 /*
  * 2 plane RGB + A
lib/igt_fb.c +89 -0

131 lines not on this page · raw message

Signature · 6 lines
2.17.0

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#1 lore raw

[igt-dev] ✗ Fi.CI.BAT: failure for lib/igt_fb: Added XYUV format support for testing (rev4)

== Series Details ==

== Series Details ==

Series: lib/igt_fb: Added XYUV format support for testing (rev4)
URL : https://patchwork.freedesktop.org/series/48789/
State : failure

== Summary ==

IGT patchset build failed on latest successful build 40de31df52ffed5e392d607a83e3aea4efb150e6 lib: Cancel all outstanding requests at the end of a test

ninja: Entering directory `build'
[1/344] Generating version.h with a custom command.
[2/341] Compiling C object 'lib/igt-igt_fb_c@sta/igt_fb.c.o'.
FAILED: lib/igt-igt_fb_c@sta/igt_fb.c.o
ccache cc -Ilib/igt-igt_fb_c@sta -Ilib -I../lib -I. -I../ -I../lib/stubs/syscalls -I../include/drm-uapi -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/opt/igt/include -I/opt/igt/include/libdrm -I/usr/include/x86_64-linux-gnu -I/usr/include -I/home/cidrm/kernel_headers/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O0 -g -D_GNU_SOURCE -include config.h -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers -Wno-clobbered -Wno-type-limits -Wimplicit-fallthrough=0 -fPIC -pthread '-DIGT_DATADIR="/opt/igt/share/igt-gpu-tools"' '-DIGT_SRCDIR="/home/cidrm/igt-gpu-tools/tests"' '-DIGT_LOG_DOMAIN="igt_fb"' -MD -MQ 'lib/igt-igt_fb_c@sta/igt_fb.c.o' -MF 'lib/igt-igt_fb_c@sta/igt_fb.c.o.d' -o 'lib/igt-igt_fb_c@sta/igt_fb.c.o' -c ../lib/igt_fb.c ../lib/igt_fb.c: In function ‘create_bo_for_fb’:
../lib/igt_fb.c:426:54: error: expected ‘)’ before ‘;’ token

     wmemset(ptr, full_range ? 0x000f8080 : 0x000f8080;
                                                      ^
../lib/igt_fb.c:426:5: error: too few arguments to function ‘wmemset’
     wmemset(ptr, full_range ? 0x000f8080 : 0x000f8080;
     ^~~~~~~
In file included from ../lib/igt_fb.c:30:0:
/usr/include/wchar.h:271:17: note: declared here
 extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) __THROW;
                 ^~~~~~~
../lib/igt_fb.c: In function ‘convert_rgb24_to_yuv444’:
../lib/igt_fb.c:1574:16: warning: unused variable ‘v’ [-Wunused-variable]
    float y, u, v;
                ^
../lib/igt_fb.c:1574:13: warning: unused variable ‘u’ [-Wunused-variable]
    float y, u, v;
             ^
../lib/igt_fb.c:1574:10: warning: unused variable ‘y’ [-Wunused-variable]
    float y, u, v;
          ^

ninja: build stopped: subcommand failed.

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev