i965: Clean up brwNewProgram().
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 18 Aug 2017 06:48:07 +0000 (23:48 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 23 Aug 2017 18:55:17 +0000 (11:55 -0700)
commit348929015ba8166495195ccff4f9bb80d057b6d7
tree4c36c4895c2195628dbdd685efd65718d76b9085
parent5ff97f2644d7438a9fdc75a2a9bc850c7ce96783
i965: Clean up brwNewProgram().

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.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/drivers/dri/i965/brw_program.c