Re: [Mesa-dev] [PATCH 2/2] i965: Separate gl_InstanceID and gl_VertexID uploading.

2014-09-12 Thread Kenneth Graunke
On Friday, September 12, 2014 08:37:11 AM Ian Romanick wrote: > On 09/10/2014 03:41 PM, Kenneth Graunke wrote: > > We always uploaded them together, mostly out of laziness - both required > > an additional vertex element. However, gl_VertexID now also requires an > > additional vertex buffer for s

Re: [Mesa-dev] [PATCH 2/2] i965: Separate gl_InstanceID and gl_VertexID uploading.

2014-09-12 Thread Ian Romanick
On 09/10/2014 03:41 PM, Kenneth Graunke wrote: > We always uploaded them together, mostly out of laziness - both required > an additional vertex element. However, gl_VertexID now also requires an > additional vertex buffer for storing gl_BaseVertex; for non-indirect > draws this also means uploadi

[Mesa-dev] [PATCH 2/2] i965: Separate gl_InstanceID and gl_VertexID uploading.

2014-09-10 Thread Kenneth Graunke
We always uploaded them together, mostly out of laziness - both required an additional vertex element. However, gl_VertexID now also requires an additional vertex buffer for storing gl_BaseVertex; for non-indirect draws this also means uploading (a small amount of) data. This is extra overhead we