OSDN Git Service

Changed format constants to match what vmwgfx driver expects
authorPaulo Sergio Travaglia <pstglia@gmail.com>
Mon, 16 Feb 2015 23:37:05 +0000 (21:37 -0200)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sun, 19 Apr 2015 06:15:59 +0000 (14:15 +0800)
commitdc21193e3252ba2d6526546ba1d0c02116baf3ee
tree34c6b3a58796795d800661692aebe75cf50cf704
parent28207c005b70a1384c1f70fa107b172d6d469f22
Changed format constants to match what vmwgfx driver expects

When allocating a new buffer using pipe driver, pipe constants
are used to define a format based on corresponding HAL_PIXEL_FORMAT
However, vmwgfx driver expects other constants
(SVGA3D_A8R8G8B8, SVGA3D_X8R8G8B8, SVGA3D_R5G6B5, etc)

Changed the returning constants to match what driver expects.

v2: [cwhuang]
 - Use the constants defined in svga3d_types.h.
 - Use C99 standard to avoid building errors with mesa 10.6.
Android.mk
gralloc_drm_pipe.c