diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2010-03-11 15:37:54 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2010-04-08 11:22:24 +0200 |
commit | f6cb28e909c8685474e69e8bd8600f146d3a74e9 (patch) | |
tree | 38f358243f81330a826abb38b689e5ca1aea5cd6 | |
parent | 676028ec0cbd4fadded92feefc8371e075abcc12 (diff) |
libXvMC: rip out debug stuff
Almost totatlly unused, but surely totally useless.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | src/xvmc/i915_xvmc.c | 5 | ||||
-rw-r--r-- | src/xvmc/intel_xvmc.c | 11 | ||||
-rw-r--r-- | src/xvmc/intel_xvmc.h | 8 |
3 files changed, 0 insertions, 24 deletions
diff --git a/src/xvmc/i915_xvmc.c b/src/xvmc/i915_xvmc.c index 40f0f35f..9ad8d01a 100644 --- a/src/xvmc/i915_xvmc.c +++ b/src/xvmc/i915_xvmc.c @@ -904,8 +904,6 @@ static Status i915_xvmc_mc_create_context(Display * display, i915XvMCContext *pI915XvMC = NULL; struct intel_xvmc_hw_context *tmpComm = NULL; - XVMC_DBG("%s\n", __FUNCTION__); - if (priv_count != (sizeof(struct intel_xvmc_hw_context) >> 2)) { XVMC_ERR ("_xvmc_create_context() returned incorrect data size!"); @@ -1029,8 +1027,6 @@ static int i915_xvmc_mc_render_surface(Display * display, XvMCContext * context, struct intel_xvmc_surface *privPast = NULL; i915XvMCContext *pI915XvMC = NULL; - XVMC_DBG("%s\n", __FUNCTION__); - /* Check Parameters for validity */ if (!display || !context || !target_surface) { XVMC_ERR("Invalid Display, Context or Target!"); @@ -1071,7 +1067,6 @@ static int i915_xvmc_mc_render_surface(Display * display, XvMCContext * context, privPast = privTarget; } else { if (!(privPast = past_surface->privData)) { - XVMC_ERR("Invalid Past Surface!"); return XvMCBadSurface; } picture_coding_type = MPEG_P_PICTURE; diff --git a/src/xvmc/intel_xvmc.c b/src/xvmc/intel_xvmc.c index 4437b1a9..6cbec807 100644 --- a/src/xvmc/intel_xvmc.c +++ b/src/xvmc/intel_xvmc.c @@ -103,14 +103,6 @@ unsigned int mb_bytes_420[] = { 768 /* 111111 */ }; -int DEBUG; - -static void intel_xvmc_debug_init(void) -{ - if (getenv("INTEL_XVMC_DEBUG")) - DEBUG = 1; -} - void LOCK_HARDWARE(drm_context_t ctx) { char __ret = 0; @@ -241,8 +233,6 @@ _X_EXPORT Status XvMCCreateContext(Display * display, XvPortID port, return BadValue; } - intel_xvmc_debug_init(); - /* Width, Height, and flags are checked against surface_type_id and port for validity inside the X server, no need to check @@ -279,7 +269,6 @@ _X_EXPORT Status XvMCCreateContext(Display * display, XvPortID port, XVMC_ERR("Unable to create XvMC Context."); return ret; } - XVMC_DBG("new context %d created\n", (int)context->context_id); comm = (struct intel_xvmc_hw_context *)priv_data; diff --git a/src/xvmc/intel_xvmc.h b/src/xvmc/intel_xvmc.h index 9aa55487..d67065ed 100644 --- a/src/xvmc/intel_xvmc.h +++ b/src/xvmc/intel_xvmc.h @@ -57,8 +57,6 @@ #include "intel_batchbuffer.h" -extern int DEBUG; - #define GTT_PAGE_SIZE 4*1024 #define XVMC_ERR(s, arg...) \ @@ -71,12 +69,6 @@ extern int DEBUG; fprintf(stderr, "[intel_xvmc] info: " s "\n", ##arg); \ } while (0) -#define XVMC_DBG(s, arg...) \ - do { \ - if (DEBUG) \ - fprintf(stderr, "[intel_xvmc] debug: " s "\n", ##arg); \ - } while (0) - /* Subpicture fourcc */ #define FOURCC_IA44 0x34344149 |