[Mesa-dev] [PATCH 2/4] i965: Store floating point mode choice in brw_stage_prog_data.

2014-12-02 Thread Kenneth Graunke
We use IEEE mode for GLSL programs, but need to use ALT mode for ARB programs so that 0^0 == 1. The choice is based entirely on the shader source language. Previously, our code to determine which mode we wanted was duplicated in 8 different places (VS and FS for Gen4-5, Gen6, Gen7, and Gen8). The

Re: [Mesa-dev] [PATCH 2/4] i965: Store floating point mode choice in brw_stage_prog_data.

2014-12-02 Thread Ian Romanick
This patch is Reviewed-by: Ian Romanick On 12/02/2014 03:51 AM, Kenneth Graunke wrote: > We use IEEE mode for GLSL programs, but need to use ALT mode for ARB > programs so that 0^0 == 1. The choice is based entirely on the shader > source language. > > Previously, our code to determine which m