summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Bär <roland@verifysoft.de>2007-08-23 18:37:35 +1000
committerDave Airlie <airlied@linux.ie>2007-08-23 19:18:49 +1000
commit7bc1f862bc5f992f213143fbafef52459ba7db4a (patch)
tree140dd7e85a0c2e919fb9a6ebbc3d46b5d8857f9b
parent9d38c8aa1a7d6fb1af41ee8abdb4a95f94843538 (diff)
radeon: bug 11861 - dead code removal in radeon_video.c
(cherry picked from commit 8e3a6f83016cd8c4cfd43ceee4cbf0a8dc018b2a)
-rw-r--r--src/radeon_video.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/radeon_video.c b/src/radeon_video.c
index a38931c8..7b851089 100644
--- a/src/radeon_video.c
+++ b/src/radeon_video.c
@@ -3444,7 +3444,8 @@ RADEONPutVideo(
id = FOURCC_YUY2;
top = ya>>16;
-
+#if 0
+ /* setting the ID above makes this useful - needs revisiting */
switch(id) {
case FOURCC_YV12:
case FOURCC_I420:
@@ -3462,6 +3463,10 @@ RADEONPutVideo(
srcPitch = (width<<1);
break;
}
+#else
+ dstPitch = ((width<<1) + 15) & ~15;
+ srcPitch = (width<<1);
+#endif
new_size = dstPitch * height;
new_size = new_size + 0x1f; /* for aligning */