[Mesa-dev] [PATCH 00/10] intel/genxml: Make more stuff booleans

Jason Ekstrand jason at jlekstrand.net
Sat Oct 15 06:11:11 UTC 2016


This is a fairly trivial little cleanup that makes a bunch of 1-bit fields
that used to have the "uint" type have the "bool" type instead.  Ideally, a
field should have the "bool" type if and only if, given the name of the
field and a true/false value, it's obvious what that value means.  I think
this little series gets us most of the way there.  The only 1-bit fields
left are either media things or things that don't have an obvious
true/false meaning to me.

Jason Ekstrand (10):
  intel/genxml: Make "Single Program Flow" a boolean
  intel/genxml: Make "Vector Mask Enable" a boolean
  intel/genxml: Make "Include Vertex Handles" and "Include Primitive ID"
    booleans
  intel/genxml: Make a couple of STREAMOUT fields booleans
  intel/genxml: Make "Stencil Buffer Enable" a boolean
  intel/genxml: Make "SO Buffer Enable" fields boolean
  intel/genxml; Make "Tiled Surface" a boolean
  intel/genxml; Make "Use Global GTT a boolean
  intel/genxml: Make "Predication enable" a boolean
  intel/genxml: Make some PIPE_CONTROL fields booleans

 src/intel/genxml/gen6.xml  | 36 ++++++++++++----------------
 src/intel/genxml/gen7.xml  | 56 ++++++++++++++++++++------------------------
 src/intel/genxml/gen75.xml | 58 +++++++++++++++++++++-------------------------
 src/intel/genxml/gen8.xml  | 52 ++++++++++++++++-------------------------
 src/intel/genxml/gen9.xml  | 52 ++++++++++++++++-------------------------
 5 files changed, 106 insertions(+), 148 deletions(-)

-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list