From: Iago Toral Quiroga Date: Tue, 10 Jun 2014 11:28:38 +0000 (+0200) Subject: mesa: Include stream information in indexed queries. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ecd9960430a52cfea624cd836d68ee2c39738410;p=mesa.git mesa: Include stream information in indexed queries. Reviewed-by: Ian Romanick --- diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 3b472b0a1db..af35ce532c0 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -2895,6 +2895,7 @@ struct gl_query_object GLboolean Active; /**< inside Begin/EndQuery */ GLboolean Ready; /**< result is ready? */ GLboolean EverBound;/**< has query object ever been bound */ + GLuint Stream; /**< The stream */ }; diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c index 86e7c3ad0a1..512f45ab93a 100644 --- a/src/mesa/main/queryobj.c +++ b/src/mesa/main/queryobj.c @@ -367,6 +367,7 @@ _mesa_BeginQueryIndexed(GLenum target, GLuint index, GLuint id) q->Result = 0; q->Ready = GL_FALSE; q->EverBound = GL_TRUE; + q->Stream = index; /* XXX should probably refcount query objects */ *bindpt = q;