libXvMC: rip out debug stuff
Almost totatlly unused, but surely totally useless. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
676028ec0c
commit
f6cb28e909
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue