瀏覽代碼

i965: Implement ARB_oq CheckQuery in the intended way.

Previously we blocked because I hadn't added the libdrm function.  Now it's
there, so update your libdrm.
tags/mesa_7_6_rc1
Eric Anholt 16 年之前
父節點
當前提交
446a226f9f
共有 1 個文件被更改,包括 1 次插入6 次删除
  1. 1
    6
      src/mesa/drivers/dri/i965/brw_queryobj.c

+ 1
- 6
src/mesa/drivers/dri/i965/brw_queryobj.c 查看文件

@@ -146,17 +146,12 @@ static void brw_wait_query(GLcontext *ctx, struct gl_query_object *q)

static void brw_check_query(GLcontext *ctx, struct gl_query_object *q)
{
/* XXX: Need to expose dri_bo_is_idle from bufmgr. */
#if 0
struct brw_query_object *query = (struct brw_query_object *)q;

if (dri_bo_is_idle(query->bo)) {
if (!drm_intel_bo_busy(query->bo)) {
brw_queryobj_get_results(query);
query->Base.Ready = GL_TRUE;
}
#else
brw_wait_query(ctx, q);
#endif
}

/** Called to set up the query BO and account for its aperture space */

Loading…
取消
儲存