summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYounes Manton <[email protected]>2010-06-06 13:31:53 -0400
committerYounes Manton <[email protected]>2010-06-06 13:31:53 -0400
commit511cb3fbf9352540dd667aa6b3bb7e24c93a4ce6 (patch)
treeb6f92fbd2f5b3510c6702e91bd3723495c405233
parent6414952efe3b53fd33d73d592da74975a1075330 (diff)
vl: Decode to XRGB, not ARGB.
-rw-r--r--src/gallium/drivers/nvfx/nvfx_video_context.c2
-rw-r--r--src/gallium/drivers/softpipe/sp_video_context.c2
-rw-r--r--src/gallium/include/pipe/p_format.h3
3 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_video_context.c b/src/gallium/drivers/nvfx/nvfx_video_context.c
index 4e21f35f40d..9212ae57fc0 100644
--- a/src/gallium/drivers/nvfx/nvfx_video_context.c
+++ b/src/gallium/drivers/nvfx/nvfx_video_context.c
@@ -45,5 +45,5 @@ nvfx_video_create(struct pipe_screen *screen, enum pipe_video_profile profile,
VL_MPEG12_MC_RENDERER_BUFFER_PICTURE,
VL_MPEG12_MC_RENDERER_EMPTY_BLOCK_XFER_ONE,
true,
- PIPE_FORMAT_VUYA);
+ PIPE_FORMAT_VUYX);
}
diff --git a/src/gallium/drivers/softpipe/sp_video_context.c b/src/gallium/drivers/softpipe/sp_video_context.c
index 9aec8a8c4fe..9d3a1ab5f5b 100644
--- a/src/gallium/drivers/softpipe/sp_video_context.c
+++ b/src/gallium/drivers/softpipe/sp_video_context.c
@@ -402,7 +402,7 @@ sp_video_create(struct pipe_screen *screen, enum pipe_video_profile profile,
VL_MPEG12_MC_RENDERER_BUFFER_PICTURE,
VL_MPEG12_MC_RENDERER_EMPTY_BLOCK_XFER_ONE,
true,
- PIPE_FORMAT_AYUV);
+ PIPE_FORMAT_XYUV);
}
struct pipe_video_context *
diff --git a/src/gallium/include/pipe/p_format.h b/src/gallium/include/pipe/p_format.h
index 70a768c4e16..5ca27b3db28 100644
--- a/src/gallium/include/pipe/p_format.h
+++ b/src/gallium/include/pipe/p_format.h
@@ -195,6 +195,8 @@ enum pipe_format {
PIPE_FORMAT_NV21 = 140,
PIPE_FORMAT_AYUV = PIPE_FORMAT_A8R8G8B8_UNORM,
PIPE_FORMAT_VUYA = PIPE_FORMAT_B8G8R8A8_UNORM,
+ PIPE_FORMAT_XYUV = PIPE_FORMAT_X8R8G8B8_UNORM,
+ PIPE_FORMAT_VUYX = PIPE_FORMAT_B8G8R8X8_UNORM,
PIPE_FORMAT_IA44 = 141,
PIPE_FORMAT_AI44 = 142,
@@ -207,6 +209,7 @@ enum pipe_video_chroma_format
PIPE_VIDEO_CHROMA_FORMAT_422,
PIPE_VIDEO_CHROMA_FORMAT_444
};
+
#ifdef __cplusplus
}
#endif