Commit 54f3f528 authored by Zhenyu Wang's avatar Zhenyu Wang

xvmc: environ debug option support

export INTEL_XVMC_DEBUG=1
parent 7a705081
......@@ -98,9 +98,17 @@ unsigned int mb_bytes_420[] = {
768 /* 111111 */
};
int DEBUG;
static int error_base;
static int event_base;
static void intel_xvmc_debug_init(void)
{
if (getenv("INTEL_XVMC_DEBUG"))
DEBUG = 1;
}
/* locking */
static void intel_xvmc_try_heavy_lock(drm_context_t ctx)
{
......@@ -282,6 +290,8 @@ Status XvMCCreateContext(Display *display, XvPortID port,
return BadValue;
}
intel_xvmc_debug_init();
/* Open DRI Device */
if((fd = drmOpen("i915", NULL)) < 0) {
XVMC_ERR("DRM Device could not be opened.");
......
......@@ -56,7 +56,7 @@
#include "intel_batchbuffer.h"
#define DEBUG 0
extern int DEBUG;
#define XVMC_ERR(s, arg...) \
do { \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment