Re: [Mesa-dev] [PATCH v2 7/8] i965: Implement glDrawTransformFeedback().

2013-10-28 Thread Pohjolainen, Topi
On Fri, Oct 25, 2013 at 10:35:48PM -0700, Kenneth Graunke wrote: Implementing the GetTransformFeedbackVertexCount() driver hook allows the VBO module to call us with the right number of vertices. The hardware doesn't directly count the number of vertices written by SOL, so we instead use the

Re: [Mesa-dev] [PATCH v2 7/8] i965: Implement glDrawTransformFeedback().

2013-10-28 Thread Pohjolainen, Topi
On Mon, Oct 28, 2013 at 01:14:55PM +0200, Pohjolainen, Topi wrote: On Fri, Oct 25, 2013 at 10:35:48PM -0700, Kenneth Graunke wrote: Implementing the GetTransformFeedbackVertexCount() driver hook allows the VBO module to call us with the right number of vertices. The hardware doesn't

Re: [Mesa-dev] [PATCH v2 7/8] i965: Implement glDrawTransformFeedback().

2013-10-28 Thread Kenneth Graunke
On 10/28/2013 04:14 AM, Pohjolainen, Topi wrote: On Fri, Oct 25, 2013 at 10:35:48PM -0700, Kenneth Graunke wrote: Implementing the GetTransformFeedbackVertexCount() driver hook allows the VBO module to call us with the right number of vertices. The hardware doesn't directly count the number

Re: [Mesa-dev] [PATCH v2 7/8] i965: Implement glDrawTransformFeedback().

2013-10-28 Thread Kenneth Graunke
On 10/28/2013 04:52 AM, Pohjolainen, Topi wrote: On Mon, Oct 28, 2013 at 01:14:55PM +0200, Pohjolainen, Topi wrote: On Fri, Oct 25, 2013 at 10:35:48PM -0700, Kenneth Graunke wrote: Implementing the GetTransformFeedbackVertexCount() driver hook allows the VBO module to call us with the right

[Mesa-dev] [PATCH v2 7/8] i965: Implement glDrawTransformFeedback().

2013-10-25 Thread Kenneth Graunke
Implementing the GetTransformFeedbackVertexCount() driver hook allows the VBO module to call us with the right number of vertices. The hardware doesn't directly count the number of vertices written by SOL, so we instead use the SO_NUM_PRIMS_WRITTEN(n) counters and multiply by the number of