[Intel-gfx] [PATCH] i915 XvMC: fixup colors
Daniel Vetter
daniel.vetter at ffwll.ch
Mon Mar 8 10:27:47 CET 2010
I think we can safely assume that I'm colorblind ;)
My cleanup accidently created a inconsistency in the YUV plane ordering.
Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
src/xvmc/i915_xvmc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/xvmc/i915_xvmc.c b/src/xvmc/i915_xvmc.c
index 190b736..0888d63 100644
--- a/src/xvmc/i915_xvmc.c
+++ b/src/xvmc/i915_xvmc.c
@@ -31,9 +31,9 @@
#include "i915_structs.h"
#include "i915_program.h"
-#define UOFFSET(surface) (SIZE_Y420(surface->width, surface->height) + \
+#define UOFFSET(surface) (SIZE_Y420(surface->width, surface->height))
+#define VOFFSET(surface) (SIZE_Y420(surface->width, surface->height) + \
SIZE_UV420(surface->width, surface->height))
-#define VOFFSET(surface) (SIZE_Y420(surface->width, surface->height))
typedef union {
int16_t component[2];
--
1.6.6.1
More information about the Intel-gfx
mailing list