OSDN Git Service

Support HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED as RGBX8888
authorGreg Hartman <ghartman@google.com>
Fri, 27 Jan 2017 17:22:31 +0000 (09:22 -0800)
committerNicolas Capens <capn@google.com>
Tue, 31 Jan 2017 18:12:58 +0000 (18:12 +0000)
commitefe1ce9d263a0786fc4db64f316f57288e3fef3b
treeea8760cf1cfd03f27c5ae7814585d5702bfbe523
parent0f185cfc099d2ad805a245325e037de9c012fbc1
Support HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED as RGBX8888

The 3.0 camera HAL makes extensive use of
HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED, which Android defines as the
format that is best for the hardware. The fake camera implementation
decided that that was RGBX8888, so it seem like that is what we should
use.

Test: untested
Change-Id: Ia02ebbefd015f9ca099b4393daf5d464f38fe8fc
Reviewed-on: https://swiftshader-review.googlesource.com/8588
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
src/Main/FrameBufferAndroid.cpp
src/OpenGL/common/Image.hpp