mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 22:10:38 +02:00
ARB_Occlusion_query should support multiple query at same time
This commit is contained in:
parent
844e5610de
commit
6aa62ba43f
2 changed files with 4 additions and 4 deletions
|
|
@ -258,11 +258,11 @@ intelBeginQuery(GLcontext *ctx, GLenum target, struct gl_query_object *q)
|
|||
{
|
||||
struct intel_context *intel = intel_context( ctx );
|
||||
drmI830MMIO io = {
|
||||
.read_write = MMIO_WRITE,
|
||||
.read_write = MMIO_READ,
|
||||
.reg = MMIO_REGS_PS_DEPTH_COUNT,
|
||||
.data = &q->Result
|
||||
};
|
||||
intel->stats_wm = GL_TRUE;
|
||||
intel->stats_wm++;
|
||||
intelFinish(&intel->ctx);
|
||||
drmCommandRead(intel->driFd, DRM_I830_MMIO, &io, sizeof(io));
|
||||
}
|
||||
|
|
@ -281,7 +281,7 @@ intelEndQuery(GLcontext *ctx, GLenum target, struct gl_query_object *q)
|
|||
drmCommandRead(intel->driFd, DRM_I830_MMIO, &io, sizeof(io));
|
||||
q->Result = tmp - q->Result;
|
||||
q->Ready = GL_TRUE;
|
||||
intel->stats_wm = GL_FALSE;
|
||||
intel->stats_wm--;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ struct intel_context
|
|||
GLuint second_last_swap_fence;
|
||||
|
||||
GLboolean aub_wrap;
|
||||
GLboolean stats_wm;
|
||||
GLuint stats_wm;
|
||||
|
||||
struct intel_batchbuffer *batch;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue