Re: [Mesa-dev] [PATCH 10/10] spirv: Generate SPIR-V builder infrastructure

2017-11-13 Thread Dylan Baker
Quoting Ian Romanick (2017-11-13 16:00:08) > > That's what I had first, and it did not work in some cases. I believe > that list==list is only True if the elements have the same order. This > function only requires that both lists have the same contents without > regard for order. I will add a

Re: [Mesa-dev] [PATCH 10/10] spirv: Generate SPIR-V builder infrastructure

2017-11-13 Thread Ian Romanick
On 11/13/2017 02:01 PM, Dylan Baker wrote: > Quoting Ian Romanick (2017-11-10 14:32:50) > [snip] >> + >> +def can_have_extra_operands(name, enums): >> +"""Determine whether an enum can have extra operands. >> + >> +Some enums, like SpvDecoration, can have extra operands with some >>

Re: [Mesa-dev] [PATCH 10/10] spirv: Generate SPIR-V builder infrastructure

2017-11-13 Thread Dylan Baker
Quoting Ian Romanick (2017-11-10 14:32:50) [snip] > + > +def can_have_extra_operands(name, enums): > +"""Determine whether an enum can have extra operands. > + > +Some enums, like SpvDecoration, can have extra operands with some values. > +Other enums, like SpvMemorySemantics, cannot.

[Mesa-dev] [PATCH 10/10] spirv: Generate SPIR-V builder infrastructure

2017-11-10 Thread Ian Romanick
From: Ian Romanick v2: Don't try to automatically set SpvCapabilityGeometry or SpvCapabilityTessellation. --- src/compiler/Makefile.sources | 2 + src/compiler/Makefile.spirv.am| 4 + src/compiler/spirv/.gitignore | 1 +