summary refs log tree commit diff
path: root/gpu_renderer/src
diff options
context:
space:
mode:
Diffstat (limited to 'gpu_renderer/src')
-rw-r--r--gpu_renderer/src/pipe_format_fourcc.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/gpu_renderer/src/pipe_format_fourcc.rs b/gpu_renderer/src/pipe_format_fourcc.rs
index 828f372..165f02c 100644
--- a/gpu_renderer/src/pipe_format_fourcc.rs
+++ b/gpu_renderer/src/pipe_format_fourcc.rs
@@ -14,7 +14,13 @@ macro_rules! fourcc {
 /// unrecognized.
 pub fn pipe_format_fourcc(f: p_format::pipe_format) -> Option<u32> {
     match f {
+        p_format::PIPE_FORMAT_B8G8R8A8_UNORM => fourcc!('A', 'R', '2', '4'),
         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_R8_UNORM => fourcc!('R', '8', ' ', ' '),
+        // p_format::PIPE_FORMAT_G8R8_UNORM => fourcc!('R', 'G', '8', '8'),
         _ => None,
     }
 }