Re: [Mesa-dev] [RFC 3/3] clover+gallium+freedreno: caps to reduce kernel recompiles

2018-04-26 Thread Rob Clark
On Thu, Apr 26, 2018 at 5:40 AM, Pierre Moreau wrote: > The cap would need to be added to the documentation as well, in > “src/gallium/docs/source/screen.rst”. > > I might be wrong, but I think you are going to break all existing drivers in > clover, that do not yet support the new cap: for unsupp

Re: [Mesa-dev] [RFC 3/3] clover+gallium+freedreno: caps to reduce kernel recompiles

2018-04-26 Thread Pierre Moreau
The cap would need to be added to the documentation as well, in “src/gallium/docs/source/screen.rst”. I might be wrong, but I think you are going to break all existing drivers in clover, that do not yet support the new cap: for unsupported caps, drivers return a value of 0, which means they would

[Mesa-dev] [RFC 3/3] clover+gallium+freedreno: caps to reduce kernel recompiles

2018-04-24 Thread Rob Clark
Not all drivers care when cs.reg_*_mem change. (ir3 only cares about req_input_mem and removing that dependency should be easy.) Add some caps to let clover make better decisions about when it needs to re- create the compute-state CSO. This way, if the kernel is compiled early for clGetKernelWor