Re: [Mesa-dev] [PATCH 2/3] intel: Give the batch decoder a callback to ask about state size.

2018-05-02 Thread Lionel Landwerlin
On 02/05/18 16:45, Kenneth Graunke wrote: On Wednesday, May 2, 2018 3:52:22 AM PDT Lionel Landwerlin wrote: On 02/05/18 06:50, Kenneth Graunke wrote: Given an arbitrary batch, we don't always know what the size of certain things are, such as how many entries are in a binding table. But it's

Re: [Mesa-dev] [PATCH 2/3] intel: Give the batch decoder a callback to ask about state size.

2018-05-02 Thread Kenneth Graunke
On Wednesday, May 2, 2018 3:52:22 AM PDT Lionel Landwerlin wrote: > On 02/05/18 06:50, Kenneth Graunke wrote: > > Given an arbitrary batch, we don't always know what the size of certain > > things are, such as how many entries are in a binding table. But it's > > easy for the driver to track that

Re: [Mesa-dev] [PATCH 2/3] intel: Give the batch decoder a callback to ask about state size.

2018-05-02 Thread Lionel Landwerlin
On 02/05/18 06:50, Kenneth Graunke wrote: Given an arbitrary batch, we don't always know what the size of certain things are, such as how many entries are in a binding table. But it's easy for the driver to track that information, so with a simple callback we can calculate this correctly for

[Mesa-dev] [PATCH 2/3] intel: Give the batch decoder a callback to ask about state size.

2018-05-01 Thread Kenneth Graunke
Given an arbitrary batch, we don't always know what the size of certain things are, such as how many entries are in a binding table. But it's easy for the driver to track that information, so with a simple callback we can calculate this correctly for INTEL_DEBUG=bat. ---