summaryrefslogtreecommitdiff
path: root/src/xvmc/intel_xvmc.c
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2008-01-02 13:57:23 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2008-01-02 13:57:23 +0800
commit0fd769b5882058e5ebf17ee1c1e35b4a3d46e6b0 (patch)
tree71b89ce6de7c6db13e2160017528bc69ba41fdb4 /src/xvmc/intel_xvmc.c
parenta2bb2afd24c95e056b801c85dc12daeac54b37f0 (diff)
xvmc: add context id info in debug/trace
Diffstat (limited to 'src/xvmc/intel_xvmc.c')
-rw-r--r--src/xvmc/intel_xvmc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xvmc/intel_xvmc.c b/src/xvmc/intel_xvmc.c
index b4a34fc2..91a050f0 100644
--- a/src/xvmc/intel_xvmc.c
+++ b/src/xvmc/intel_xvmc.c
@@ -250,6 +250,7 @@ Status XvMCCreateContext(Display *display, XvPortID port,
XVMC_ERR("Unable to create XvMC Context.");
return ret;
}
+ XVMC_DBG("new context %d created\n", context->context_id);
comm = (struct _intel_xvmc_common *)priv_data;
@@ -339,7 +340,8 @@ Status XvMCCreateContext(Display *display, XvPortID port,
if (!uniDRICreateContext(display, screen, NULL,
context->context_id,
&intel_ctx->hw_context)) {
- XVMC_ERR("Could not create DRI context.");
+ XVMC_ERR("Could not create DRI context for xvmc ctx %d.",
+ context->context_id);
XFree(priv_data);
context->privData = NULL;
drmUnmap(xvmc_driver->sarea_address, xvmc_driver->sarea_size);