diff mbox

i915 XvMC: kill dead code

Message ID 1267732220-4716-1-git-send-email-daniel.vetter@ffwll.ch (mailing list archive)
State Accepted
Headers show

Commit Message

Daniel Vetter March 4, 2010, 7:50 p.m. UTC
None
diff mbox

Patch

diff --git a/src/i915_hwmc.c b/src/i915_hwmc.c
index 8ba122b..457c89b 100644
--- a/src/i915_hwmc.c
+++ b/src/i915_hwmc.c
@@ -231,26 +231,6 @@  static int i915_xvmc_put_image(ScrnInfoPtr scrn,
 	int ret;
 
 	if (FOURCC_XVMC == id) {
-#if 0
-		switch (xvmc_cmd->command) {
-		case INTEL_XVMC_COMMAND_DISPLAY:
-			if ((xvmc_cmd->srfNo >= I915_XVMC_MAX_SURFACES) ||
-			    !pXvMC->surfaces[xvmc_cmd->srfNo] ||
-			    !pXvMC->sfprivs[xvmc_cmd->srfNo]) {
-				xf86DrvMsg(scrn->scrnIndex, X_ERROR,
-					   "[XvMC] i915 put image: Invalid parameters!\n");
-				return 1;
-			}
-
-			/* use char *buf to hold our surface offset...hacky! */
-			buf =
-			    (unsigned char *)pXvMC->sfprivs[xvmc_cmd->srfNo]->
-			    surface->bo->offset;
-			break;
-		default:
-			return 0;
-		}
-#endif
 		/* Pass the GEM object name through the pointer arg. */
 		buf = (void *)(uintptr_t)xvmc_cmd->handle;
 	}
@@ -295,10 +275,6 @@  static XF86MCAdaptorRec pAdapt = {
 	.name = "Intel(R) Textured Video",
 	.num_surfaces = ARRAY_SIZE(ppSI),
 	.surfaces = ppSI,
-#if 0
-	.num_subpictures = ARRARY_SIZE(i915_subpicture_list),
-	.subpictures = i915_subpicture_list,
-#endif
 	.num_subpictures = 0,
 	.subpictures = NULL,
 	.CreateContext =