Skip to content

wayland-info: explain dmabuf formats/modifiers

M. Stoeckl requested to merge mstoeckl/wayland-utils:drm-print into main

An updated version of !3 (closed), using drmGetFormatModifier{Name,Vendor}, and using almost the same naming convention as Weston does in pixel_format_get_modifier.

New version:

interface: 'zwp_linux_dmabuf_v1',                        version:  3, name:  3
	formats (fourcc) and modifiers (names):
	0x20203852 = 'R8  '; 0x00ffffffffffffff = INVALID_MODIFIER
	0x20203852 = 'R8  '; 0x0100000000000002 = INTEL_Y_TILED
	0x20203852 = 'R8  '; 0x0100000000000001 = INTEL_X_TILED
	0x20203852 = 'R8  '; 0x0000000000000000 = LINEAR
	0x34325241 = 'AR24'; 0x00ffffffffffffff = INVALID_MODIFIER
	0x34325241 = 'AR24'; 0x0100000000000004 = INTEL_Y_TILED_CCS
	0x34325241 = 'AR24'; 0x0100000000000002 = INTEL_Y_TILED
	0x34325241 = 'AR24'; 0x0100000000000001 = INTEL_X_TILED
	0x34325241 = 'AR24'; 0x0000000000000000 = LINEAR
	0x48344258 = 'XB4H'; 0x00ffffffffffffff = INVALID_MODIFIER
	0x48344258 = 'XB4H'; 0x0100000000000004 = INTEL_Y_TILED_CCS
	0x48344258 = 'XB4H'; 0x0100000000000002 = INTEL_Y_TILED
	0x48344258 = 'XB4H'; 0x0100000000000001 = INTEL_X_TILED
	0x48344258 = 'XB4H'; 0x0000000000000000 = LINEAR

Old version:

interface: 'zwp_linux_dmabuf_v1',                        version:  3, name:  3
	 formats:
        'R8  '(0x20203852), modifier: 0x00ffffffffffffff
        'R8  '(0x20203852), modifier: 0x0100000000000002
        'R8  '(0x20203852), modifier: 0x0100000000000001
        'R8  '(0x20203852), modifier: 0x0000000000000000
        'AR24'(0x34325241), modifier: 0x00ffffffffffffff
        'AR24'(0x34325241), modifier: 0x0100000000000004
        'AR24'(0x34325241), modifier: 0x0100000000000002
        'AR24'(0x34325241), modifier: 0x0100000000000001
        'AR24'(0x34325241), modifier: 0x0000000000000000
        'XB4H'(0x48344258), modifier: 0x00ffffffffffffff
        'XB4H'(0x48344258), modifier: 0x0100000000000004
        'XB4H'(0x48344258), modifier: 0x0100000000000002
        'XB4H'(0x48344258), modifier: 0x0100000000000001
        'XB4H'(0x48344258), modifier: 0x0000000000000000
Edited by M. Stoeckl

Merge request reports

Loading