Re: [Mesa-dev] [PATCH] i965: Skip register write checks if cmd_parser_version >= 2.

2016-10-26 Thread Kenneth Graunke
On Wednesday, October 26, 2016 10:42:32 AM PDT Francisco Jerez wrote: > Daniel Vetter writes: > > > On Tue, Oct 25, 2016 at 11:16:56AM -0700, Francisco Jerez wrote: > >> Kenneth Graunke writes: > >> > >> > If the kernel advertises a new enough command parser version, then we > >> > can just ass

Re: [Mesa-dev] [PATCH] i965: Skip register write checks if cmd_parser_version >= 2.

2016-10-26 Thread Francisco Jerez
Daniel Vetter writes: > On Tue, Oct 25, 2016 at 11:16:56AM -0700, Francisco Jerez wrote: >> Kenneth Graunke writes: >> >> > If the kernel advertises a new enough command parser version, then we >> > can just assume that register writes will work and not bother executing >> > commands on the GPU

Re: [Mesa-dev] [PATCH] i965: Skip register write checks if cmd_parser_version >= 2.

2016-10-26 Thread Daniel Vetter
On Tue, Oct 25, 2016 at 11:16:56AM -0700, Francisco Jerez wrote: > Kenneth Graunke writes: > > > If the kernel advertises a new enough command parser version, then we > > can just assume that register writes will work and not bother executing > > commands on the GPU to test it. > > > > This shoul

Re: [Mesa-dev] [PATCH] i965: Skip register write checks if cmd_parser_version >= 2.

2016-10-25 Thread Francisco Jerez
Kenneth Graunke writes: > If the kernel advertises a new enough command parser version, then we > can just assume that register writes will work and not bother executing > commands on the GPU to test it. > > This should speed up context creation. > > From the command parser version history (i915_

Re: [Mesa-dev] [PATCH] i965: Skip register write checks if cmd_parser_version >= 2.

2016-10-25 Thread Chris Wilson
On Tue, Oct 25, 2016 at 05:57:14PM +0200, Daniel Vetter wrote: > On Wed, Oct 19, 2016 at 02:26:15PM -0700, Kenneth Graunke wrote: > > On Wednesday, October 19, 2016 8:35:11 PM PDT Chris Wilson wrote: > > > On Wed, Oct 19, 2016 at 12:25:51PM -0700, Kenneth Graunke wrote: > > > > If the kernel advert

Re: [Mesa-dev] [PATCH] i965: Skip register write checks if cmd_parser_version >= 2.

2016-10-25 Thread Daniel Vetter
On Wed, Oct 19, 2016 at 02:26:15PM -0700, Kenneth Graunke wrote: > On Wednesday, October 19, 2016 8:35:11 PM PDT Chris Wilson wrote: > > On Wed, Oct 19, 2016 at 12:25:51PM -0700, Kenneth Graunke wrote: > > > If the kernel advertises a new enough command parser version, then we > > > can just assume

Re: [Mesa-dev] [PATCH] i965: Skip register write checks if cmd_parser_version >= 2.

2016-10-19 Thread Kenneth Graunke
On Wednesday, October 19, 2016 8:35:11 PM PDT Chris Wilson wrote: > On Wed, Oct 19, 2016 at 12:25:51PM -0700, Kenneth Graunke wrote: > > If the kernel advertises a new enough command parser version, then we > > can just assume that register writes will work and not bother executing > > commands on

Re: [Mesa-dev] [PATCH] i965: Skip register write checks if cmd_parser_version >= 2.

2016-10-19 Thread Chris Wilson
On Wed, Oct 19, 2016 at 12:25:51PM -0700, Kenneth Graunke wrote: > If the kernel advertises a new enough command parser version, then we > can just assume that register writes will work and not bother executing > commands on the GPU to test it. We do not guarantee that capabilities will not be rem

[Mesa-dev] [PATCH] i965: Skip register write checks if cmd_parser_version >= 2.

2016-10-19 Thread Kenneth Graunke
If the kernel advertises a new enough command parser version, then we can just assume that register writes will work and not bother executing commands on the GPU to test it. This should speed up context creation. From the command parser version history (i915_cmd_parser.c): * 1. Initial version