Re: [Mesa-dev] [PATCH 1/4] nir: use Python to autogenerate opcode information

2015-01-23 Thread Jason Ekstrand
On Fri, Jan 23, 2015 at 3:10 PM, Matt Turner wrote: > On Fri, Jan 23, 2015 at 1:43 PM, Jason Ekstrand > wrote: > > create mode 100644 src/glsl/nir/nir_opcodes.py > > create mode 100644 src/glsl/nir/nir_opcodes_c.py > > create mode 100644 src/glsl/nir/nir_opcodes_h.py > > Add the python files

Re: [Mesa-dev] [PATCH 1/4] nir: use Python to autogenerate opcode information

2015-01-23 Thread Matt Turner
On Fri, Jan 23, 2015 at 1:43 PM, Jason Ekstrand wrote: > create mode 100644 src/glsl/nir/nir_opcodes.py > create mode 100644 src/glsl/nir/nir_opcodes_c.py > create mode 100644 src/glsl/nir/nir_opcodes_h.py Add the python files to EXTRA_DIST in src/glsl/Makefile.am before you commit. __

[Mesa-dev] [PATCH 1/4] nir: use Python to autogenerate opcode information

2015-01-23 Thread Jason Ekstrand
From: Connor Abbott Before, we used a system where a file, nir_opcodes.h, defined some macros that were included to generate the enum values and the nir_op_infos structure. This worked pretty well, but for development the error messages were never very useful, Python tools couldn't understand the