Re: [Mesa-dev] [PATCH v2] i965/fs: Add remove_extra_rounding_modes optimization

2017-09-08 Thread Alejandro Piñeiro
On 08/09/17 01:58, Jason Ekstrand wrote: > On Tue, Aug 29, 2017 at 11:54 PM, Alejandro Piñeiro > mailto:apinhe...@igalia.com>> wrote: > > Although from SPIR-V point of view, rounding modes are attached to the > operation/destination, on i965 it is a status, so we don't need to > explici

Re: [Mesa-dev] [PATCH v2] i965/fs: Add remove_extra_rounding_modes optimization

2017-09-07 Thread Jason Ekstrand
On Tue, Aug 29, 2017 at 11:54 PM, Alejandro Piñeiro wrote: > Although from SPIR-V point of view, rounding modes are attached to the > operation/destination, on i965 it is a status, so we don't need to > explicitly set the rounding mode if the one we want is already set. > > v2: Use a single SHADE

[Mesa-dev] [PATCH v2] i965/fs: Add remove_extra_rounding_modes optimization

2017-08-29 Thread Alejandro Piñeiro
Although from SPIR-V point of view, rounding modes are attached to the operation/destination, on i965 it is a status, so we don't need to explicitly set the rounding mode if the one we want is already set. v2: Use a single SHADER_OPCODE_RND_MODE opcode taking an immediate with the rounding mod