[Mesa-dev] [PATCH 1/3] mesa: Make a shared header for 3D pipeline enum / #defines.

Kenneth Graunke kenneth at whitecape.org
Fri Mar 27 14:13:18 PDT 2015


On Friday, March 27, 2015 01:54:30 PM Eric Anholt wrote:
> NIR uses these enums/#defines in nir_variables and associated intrinsics,
> but I want to be able to use them from TGSI->NIR and NIR->TGSI.
> Otherwise, we had to pull in all of mtypes.h.
> 
> This doesn't cover all of the enums we might want from a shared compiler
> core (like varying slots or vert attribs), but it at least covers what I
> need at the moment (system values and interp qualifiers).
> ---
>  src/mesa/main/mtypes.h | 135 +--------------------------------------
>  src/util/pipeline.h    | 170 
+++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 171 insertions(+), 134 deletions(-)
>  create mode 100644 src/util/pipeline.h

Pulling these out of mtypes.h seems like a fine plan.  However, I don't
think the new header really belongs in src/util.

src/util is meant for memory allocation libraries, data structures,
atomic code, and other generic sort of helper stuff.

This is clearly compiler stuff - maybe put it in src/glsl or
src/mesa/program?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150327/ea585b3d/attachment.sig>


More information about the mesa-dev mailing list