diff options
author | Lepton Wu <lepton@chromium.org> | 2019-03-12 12:55:30 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-03-13 10:38:47 -0700 |
commit | 28716ea4308058df34f9c5f67a3fb4fe34463fe2 (patch) | |
tree | b243aa0ec1cd980a0cb3021a0c880930dd1c9917 | |
parent | cdae1067c3e7b55c3c4ffa115d7df1a6d22145d8 (diff) | |
download | crosvm-28716ea4308058df34f9c5f67a3fb4fe34463fe2.tar crosvm-28716ea4308058df34f9c5f67a3fb4fe34463fe2.tar.gz crosvm-28716ea4308058df34f9c5f67a3fb4fe34463fe2.tar.bz2 crosvm-28716ea4308058df34f9c5f67a3fb4fe34463fe2.tar.lz crosvm-28716ea4308058df34f9c5f67a3fb4fe34463fe2.tar.xz crosvm-28716ea4308058df34f9c5f67a3fb4fe34463fe2.tar.zst crosvm-28716ea4308058df34f9c5f67a3fb4fe34463fe2.zip |
gpu_renderer: Enable DRM_FORMAT_RGB565 format.
Some games under arcvm tried to create gbu buffer in this format. BUG=b:128019372 TEST=manual - Run Asphalt 8 in ARCVM. Change-Id: I12e67981b4a0b50574ff57cd6bfe94c042feedac Reviewed-on: https://chromium-review.googlesource.com/1518731 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: Lepton Wu <lepton@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Zach Reizner <zachr@chromium.org>
-rw-r--r-- | gpu_renderer/src/pipe_format_fourcc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu_renderer/src/pipe_format_fourcc.rs b/gpu_renderer/src/pipe_format_fourcc.rs index 165f02c..1b04775 100644 --- a/gpu_renderer/src/pipe_format_fourcc.rs +++ b/gpu_renderer/src/pipe_format_fourcc.rs @@ -18,7 +18,7 @@ pub fn pipe_format_fourcc(f: p_format::pipe_format) -> Option<u32> { p_format::PIPE_FORMAT_B8G8R8X8_UNORM => fourcc!('X', 'R', '2', '4'), p_format::PIPE_FORMAT_R8G8B8A8_UNORM => fourcc!('A', 'B', '2', '4'), p_format::PIPE_FORMAT_R8G8B8X8_UNORM => fourcc!('X', 'B', '2', '4'), - // p_format::PIPE_FORMAT_B5G6R5_UNORM => fourcc!('R', 'G', '1', '6'), + p_format::PIPE_FORMAT_B5G6R5_UNORM => fourcc!('R', 'G', '1', '6'), // p_format::PIPE_FORMAT_R8_UNORM => fourcc!('R', '8', ' ', ' '), // p_format::PIPE_FORMAT_G8R8_UNORM => fourcc!('R', 'G', '8', '8'), _ => None, |