OSDN Git Service

Add one environment variable to check the benchmark of decoding/vaPutsurface
authorZhao Yakui <yakui.zhao@intel.com>
Mon, 30 Dec 2013 04:42:55 +0000 (12:42 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 27 Feb 2014 02:30:18 +0000 (10:30 +0800)
The swap_buffer callback will wait for the completion of buffer swap, which
will affect the benchmark test of decoding/vaPutSurface.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
src/i965_output_dri.c

index 1467367..717ee9a 100644 (file)
@@ -204,7 +204,8 @@ i965_put_surface_dri(
         }
     }
 
-    dri_vtable->swap_buffer(ctx, dri_drawable);
+    if (!getenv("INTEL_DEBUG_BENCH"))
+        dri_vtable->swap_buffer(ctx, dri_drawable);
     obj_surface->flags |= SURFACE_DISPLAYED;
 
     if ((obj_surface->flags & SURFACE_ALL_MASK) == SURFACE_DISPLAYED) {