lkml.org 
[lkml]   [2017]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v15 2/7] drm: Introduce RGB 64-bit 16:16:16:16 float format
    Date
    The RGB 64-bit 16:16:16:16 float pixel format is needed by some Apps in
    windows. The float format in each component is 1:5:10 MSb-sign:exponent:
    fraction.

    This patch is to introduce the format to drm, so that the windows guest's
    framebuffer in this kind of format can be recognized and used by linux
    host.

    v14:
    - add some details about the float pixel format. (Daniel)
    - add F suffix to the defined name. (Daniel)

    v12:
    - send to dri-devel at lists.freedesktop.org. (Ville)

    v9:
    - separated from framebuffer decoder patch. (Zhenyu) (Xiaoguang)

    Signed-off-by: Tina Zhang <tina.zhang@intel.com>
    Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Cc: Dave Airlie <airlied@redhat.com>
    Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
    ---
    include/uapi/drm/drm_fourcc.h | 4 ++++
    1 file changed, 4 insertions(+)

    diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h
    index 76c9101..575014f 100644
    --- a/include/uapi/drm/drm_fourcc.h
    +++ b/include/uapi/drm/drm_fourcc.h
    @@ -113,6 +113,10 @@ extern "C" {

    #define DRM_FORMAT_AYUV fourcc_code('A', 'Y', 'U', 'V') /* [31:0] A:Y:Cb:Cr 8:8:8:8 little endian */

    +/* 64 bpp RGB 16:16:16:16 Floating Point */
    +#define DRM_FORMAT_XRGB161616F fourcc_code('X', 'R', '3', 'F') /* [63:0] x:R:G:B 16:16:16:16 little endian */
    +#define DRM_FORMAT_XBGR161616F fourcc_code('X', 'B', '3', 'F') /* [63:0] x:B:G:R 16:16:16:16 little endian */
    +
    /*
    * 2 plane RGB + A
    * index 0 = RGB plane, same format as the corresponding non _A8 format has
    --
    2.7.4
    \
     
     \ /
      Last update: 2017-10-10 11:59    [W:4.785 / U:0.120 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site