i965/gs: Add the gl_prim_to_hw_prim table to vec4_gs_visitor.cpp
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 1 Mar 2017 01:16:22 +0000 (17:16 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 2 Mar 2017 00:14:01 +0000 (16:14 -0800)
commitc6a719b64f9837418c4a07e863f8eabbc19c85eb
tree27ca5bbc8bb85497c8724a6bc07dddf3586db2d2
parent035616cb8edef47d9d2aac78d47c99563fd5468f
i965/gs: Add the gl_prim_to_hw_prim table to vec4_gs_visitor.cpp

It's currently in brw_util.c but that's the only bit of brw_util.c
that's shared between the compiler and the rest of the GL driver.
It's just a fairly obvious table so the duplication isn't bad.  It's
certainly less pain than trying to figure out how to share the code.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp