Re: [Mesa-dev] [PATCH 6/9] mesa: Add a new GetTransformFeedbackVertexCount() driver hook.

2013-10-25 Thread Kenneth Graunke
On 10/21/2013 05:55 PM, Eric Anholt wrote: [snip] This interface means synchronizing with the GPU, which sucks when we have the ability to actually do DTFB in the hardware pipeline (Indirect Parameter Enable of 3DPRIMITIVE). It's not that simple. The 3DPRIMITIVE indirect registers require you

Re: [Mesa-dev] [PATCH 6/9] mesa: Add a new GetTransformFeedbackVertexCount() driver hook.

2013-10-25 Thread Kenneth Graunke
On 10/22/2013 04:30 AM, Marek Olšák wrote: On Fri, Oct 18, 2013 at 8:09 AM, Kenneth Graunke kenn...@whitecape.org wrote: DrawTransformFeedback() needs to obtain the number of vertices written to a particular stream during the last Begin/EndTransformFeedback block. The new driver hook returns

Re: [Mesa-dev] [PATCH 6/9] mesa: Add a new GetTransformFeedbackVertexCount() driver hook.

2013-10-25 Thread Eric Anholt
Kenneth Graunke kenn...@whitecape.org writes: On 10/21/2013 05:55 PM, Eric Anholt wrote: [snip] This interface means synchronizing with the GPU, which sucks when we have the ability to actually do DTFB in the hardware pipeline (Indirect Parameter Enable of 3DPRIMITIVE). It's not that

Re: [Mesa-dev] [PATCH 6/9] mesa: Add a new GetTransformFeedbackVertexCount() driver hook.

2013-10-25 Thread Marek Olšák
On Fri, Oct 25, 2013 at 10:28 PM, Kenneth Graunke kenn...@whitecape.org wrote: On 10/22/2013 04:30 AM, Marek Olšák wrote: On Fri, Oct 18, 2013 at 8:09 AM, Kenneth Graunke kenn...@whitecape.org wrote: DrawTransformFeedback() needs to obtain the number of vertices written to a particular

Re: [Mesa-dev] [PATCH 6/9] mesa: Add a new GetTransformFeedbackVertexCount() driver hook.

2013-10-25 Thread Kenneth Graunke
On 10/25/2013 03:26 PM, Marek Olšák wrote: [snip] At least for Ivybridge, I think I want this software path 100% of the time. We may want to remove the stall on Haswell as a later optimization. I'd like to have a dedicated flag for this fallback like we have

Re: [Mesa-dev] [PATCH 6/9] mesa: Add a new GetTransformFeedbackVertexCount() driver hook.

2013-10-22 Thread Marek Olšák
On Fri, Oct 18, 2013 at 8:09 AM, Kenneth Graunke kenn...@whitecape.org wrote: DrawTransformFeedback() needs to obtain the number of vertices written to a particular stream during the last Begin/EndTransformFeedback block. The new driver hook returns exactly that information. Gallium drivers

Re: [Mesa-dev] [PATCH 6/9] mesa: Add a new GetTransformFeedbackVertexCount() driver hook.

2013-10-21 Thread Eric Anholt
Kenneth Graunke kenn...@whitecape.org writes: DrawTransformFeedback() needs to obtain the number of vertices written to a particular stream during the last Begin/EndTransformFeedback block. The new driver hook returns exactly that information. Gallium drivers already implement this

[Mesa-dev] [PATCH 6/9] mesa: Add a new GetTransformFeedbackVertexCount() driver hook.

2013-10-18 Thread Kenneth Graunke
DrawTransformFeedback() needs to obtain the number of vertices written to a particular stream during the last Begin/EndTransformFeedback block. The new driver hook returns exactly that information. Gallium drivers already implement this functionality by passing the transform feedback object to