i965: Make brw_{shader,vec4}.h safe to include from C.
authorPaul Berry <stereotype441@gmail.com>
Wed, 21 Aug 2013 14:53:42 +0000 (07:53 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 23 Aug 2013 18:02:40 +0000 (11:02 -0700)
commite556286802811b4b99c692d1ff5197f8ee1f011b
treed4e21486b27ab1fc74f465b31d1ed983e1457992
parent5fb13d871e062354a77a427b3a3fe7f3d6908e5a
i965: Make brw_{shader,vec4}.h safe to include from C.

The patch that follows will move the definition of struct
brw_vec4_prog_key from brw_vs.h to brw_vec4.h, making it necessary for
brw_vs.h to include brw_vec4.h (because brw_vs.h defines struct
brw_vs_prog_key, which contains brw_vec4_prog_key as a member).  Since
brw_vs.h is included from C source files, that means that brw_vec4.h
will need to be safe to include from C.  Same for brw_shader.h, since
it is included by brw_vec4.h.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_shader.h
src/mesa/drivers/dri/i965/brw_vec4.h