Re: [Mesa-dev] intel: WIP: Support for using 16-bits for mediump

2018-11-06 Thread Iago Toral
On Tue, 2018-11-06 at 11:04 +0200, Pohjolainen, Topi wrote: > On Tue, Nov 06, 2018 at 09:40:17AM +0100, Iago Toral wrote: > > On Tue, 2018-11-06 at 08:30 +0200, Topi Pohjolainen wrote: > > > Here is a version 2 of adding support for 16-bit float > > > instructions > > > in > > > the shader compiler

Re: [Mesa-dev] intel: WIP: Support for using 16-bits for mediump

2018-11-06 Thread Pohjolainen, Topi
On Tue, Nov 06, 2018 at 02:08:32PM +0100, Connor Abbott wrote: > On Tue, Nov 6, 2018 at 1:45 PM Pohjolainen, Topi > wrote: > > > > On Tue, Nov 06, 2018 at 11:31:58AM +0100, Connor Abbott wrote: > > > On Tue, Nov 6, 2018 at 11:14 AM Pohjolainen, Topi > > > wrote: > > > > > > > > On Tue, Nov 06, 20

Re: [Mesa-dev] intel: WIP: Support for using 16-bits for mediump

2018-11-06 Thread Connor Abbott
On Tue, Nov 6, 2018 at 1:45 PM Pohjolainen, Topi wrote: > > On Tue, Nov 06, 2018 at 11:31:58AM +0100, Connor Abbott wrote: > > On Tue, Nov 6, 2018 at 11:14 AM Pohjolainen, Topi > > wrote: > > > > > > On Tue, Nov 06, 2018 at 10:45:52AM +0100, Connor Abbott wrote: > > > > As far as I understand, me

Re: [Mesa-dev] intel: WIP: Support for using 16-bits for mediump

2018-11-06 Thread Pohjolainen, Topi
On Tue, Nov 06, 2018 at 11:31:58AM +0100, Connor Abbott wrote: > On Tue, Nov 6, 2018 at 11:14 AM Pohjolainen, Topi > wrote: > > > > On Tue, Nov 06, 2018 at 10:45:52AM +0100, Connor Abbott wrote: > > > As far as I understand, mediump handling can be split into two parts: > > > > > > 1. Figuring out

Re: [Mesa-dev] intel: WIP: Support for using 16-bits for mediump

2018-11-06 Thread Connor Abbott
On Tue, Nov 6, 2018 at 11:31 AM Connor Abbott wrote: > > On Tue, Nov 6, 2018 at 11:14 AM Pohjolainen, Topi > wrote: > > > > On Tue, Nov 06, 2018 at 10:45:52AM +0100, Connor Abbott wrote: > > > As far as I understand, mediump handling can be split into two parts: > > > > > > 1. Figuring out which

Re: [Mesa-dev] intel: WIP: Support for using 16-bits for mediump

2018-11-06 Thread Connor Abbott
On Tue, Nov 6, 2018 at 11:14 AM Pohjolainen, Topi wrote: > > On Tue, Nov 06, 2018 at 10:45:52AM +0100, Connor Abbott wrote: > > As far as I understand, mediump handling can be split into two parts: > > > > 1. Figuring out which operations (instructions or SSA values in NIR) > > can use relaxed pre

Re: [Mesa-dev] intel: WIP: Support for using 16-bits for mediump

2018-11-06 Thread Pohjolainen, Topi
On Tue, Nov 06, 2018 at 10:45:52AM +0100, Connor Abbott wrote: > As far as I understand, mediump handling can be split into two parts: > > 1. Figuring out which operations (instructions or SSA values in NIR) > can use relaxed precision. > 2. Deciding which relaxed-precision operations to actually

Re: [Mesa-dev] intel: WIP: Support for using 16-bits for mediump

2018-11-06 Thread Connor Abbott
As far as I understand, mediump handling can be split into two parts: 1. Figuring out which operations (instructions or SSA values in NIR) can use relaxed precision. 2. Deciding which relaxed-precision operations to actually compute in 16-bit precision. At least for GLSL, #1 is pretty well nailed

Re: [Mesa-dev] intel: WIP: Support for using 16-bits for mediump

2018-11-06 Thread Pohjolainen, Topi
On Tue, Nov 06, 2018 at 09:40:17AM +0100, Iago Toral wrote: > On Tue, 2018-11-06 at 08:30 +0200, Topi Pohjolainen wrote: > > Here is a version 2 of adding support for 16-bit float instructions > > in > > the shader compiler. Unlike the first version which did all the > > analysis > > at glsl level

Re: [Mesa-dev] intel: WIP: Support for using 16-bits for mediump

2018-11-06 Thread Iago Toral
On Tue, 2018-11-06 at 08:30 +0200, Topi Pohjolainen wrote: > Here is a version 2 of adding support for 16-bit float instructions > in > the shader compiler. Unlike the first version which did all the > analysis > at glsl level here one adds the notion of precision to NIR variables > and > does the

[Mesa-dev] intel: WIP: Support for using 16-bits for mediump

2018-11-05 Thread Topi Pohjolainen
Here is a version 2 of adding support for 16-bit float instructions in the shader compiler. Unlike the first version which did all the analysis at glsl level here one adds the notion of precision to NIR variables and does the analysis and precision lowering in NIR level. This lives in: gitlab.free