Re: [Mesa-dev] [PATCH] i965: Clean up brwNewProgram().

2017-08-22 Thread Timothy Arceri
On 23/08/17 12:19, Kenneth Graunke wrote: All shader stages do the exact same thing, so we don't need the switch statement, or the redundant FS case. I believe these used to be different before Tim eliminated the (e.g.) brw_vertex_program subclasses. Seems about right, I must have forgotten to

[Mesa-dev] [PATCH] i965: Clean up brwNewProgram().

2017-08-22 Thread Kenneth Graunke
All shader stages do the exact same thing, so we don't need the switch statement, or the redundant FS case. I believe these used to be different before Tim eliminated the (e.g.) brw_vertex_program subclasses. --- src/mesa/drivers/dri/i965/brw_program.c | 33 + 1 fi