head	1.2;
access;
symbols
	netbsd-8-3-RELEASE:1.1.1.2
	netbsd-8-2-RELEASE:1.1.1.2
	netbsd-8-1-RELEASE:1.1.1.2
	netbsd-8-1-RC1:1.1.1.2
	netbsd-7-2-RELEASE:1.1.1.1.2.1
	netbsd-8-0-RELEASE:1.1.1.2
	netbsd-8-0-RC2:1.1.1.2
	netbsd-8-0-RC1:1.1.1.2
	netbsd-7-1-2-RELEASE:1.1.1.1.2.1
	netbsd-7-1-1-RELEASE:1.1.1.1.2.1
	netbsd-8:1.1.1.2.0.2
	netbsd-8-base:1.1.1.2
	netbsd-7-1:1.1.1.1.2.1.0.4
	netbsd-7-1-RELEASE:1.1.1.1.2.1
	netbsd-7-1-RC2:1.1.1.1.2.1
	netbsd-7-1-RC1:1.1.1.1.2.1
	netbsd-7-0-2-RELEASE:1.1.1.1.2.1
	netbsd-7-0-1-RELEASE:1.1.1.1.2.1
	netbsd-7-0:1.1.1.1.2.1.0.2
	netbsd-7-0-RELEASE:1.1.1.1.2.1
	netbsd-7-0-RC3:1.1.1.1.2.1
	netbsd-7-0-RC2:1.1.1.1.2.1
	netbsd-7-0-RC1:1.1.1.1.2.1
	MesaLib-10-3-5:1.1.1.2
	netbsd-7:1.1.1.1.0.2
	netbsd-7-base:1.1.1.1
	MesaLib-7-11-2:1.1.1.1
	xorg:1.1.1;
locks; strict;
comment	@// @;


1.2
date	2019.03.10.04.15.46;	author mrg;	state dead;
branches;
next	1.1;
commitid	1CZNVjkFuXGmWLeB;

1.1
date	2014.07.09.19.38.35;	author riastradh;	state Exp;
branches
	1.1.1.1;
next	;
commitid	h96CLViPL8qdRJHx;

1.1.1.1
date	2014.07.09.19.38.35;	author riastradh;	state Exp;
branches
	1.1.1.1.2.1;
next	1.1.1.2;
commitid	h96CLViPL8qdRJHx;

1.1.1.2
date	2014.12.18.06.02.07;	author mrg;	state Exp;
branches;
next	;
commitid	tzEjkwzaREfP8u2y;

1.1.1.1.2.1
date	2015.01.05.20.59.01;	author martin;	state Exp;
branches;
next	;
commitid	1yEFPaBBlEWKuS4y;


desc
@@


1.2
log
@merge Mesa 18.3.4.

this work is mostly from maya@@ with a little help from myself
via these github commits:


commit 57df9d9b59df14fd6ac8e30832ce4f29572a33c0
Author: coypu <coypu@@sdf.org>
Date:   Mon Mar 4 12:24:37 2019 +0200

    Make GCC happier about prototype, include right header for __HAVE_ATOMIC64_OPS

commit 93c2f416aa316cc3d0665661c9f927f6949cdd37
Author: coypu <coypu@@sdf.org>
Date:   Mon Mar 4 12:16:56 2019 +0200

    Make the u_atomic.c fallback locked 64bit atomics more suited

    for the netbsd case: we are using __GNUC__ compilers, but without
    libatomic. so we are emitting the __GNUC__ names.

    Use __HAVE_ATOMIC64_OPS which is the netbsd name for this condition
    (we don't run configure)

commit 84c2bf2f622f8a78f68ad1ca35b90bb991bdaab0
Author: coypu <coypu@@sdf.org>
Date:   Sun Mar 3 20:02:38 2019 +0200

    Remove unused padding to struct.

    The extra space is in the flexible array member at the end of
    struct drm_i915_query_topology_info.

    Clang dislikes having an extra member to the struct after the flexible
    array member.

commit 00f432b0edf95a6e292e8259ad3096a07966b53c
Author: Maya Rashish <maya@@NetBSD.org>
Date:   Sun Feb 24 23:36:09 2019 +0200

    Avoid left-shifting a negative, for clang

commit 84881d47e674b93b79f405326b3ae43af53fe611
Author: Maya Rashish <maya@@NetBSD.org>
Date:   Sun Feb 24 21:30:43 2019 +0200

    avoid conflict with netbsd bswap32

commit d9bd43728cb5cf161d8501be6d53dee50f094df0
Author: Maya Rashish <maya@@NetBSD.org>
Date:   Sun Feb 24 21:30:30 2019 +0200

    cast enum to appease clang

commit a84ec26c89d08028800e74313ccbbf0a1a0753ed
Author: Maya Rashish <maya@@NetBSD.org>
Date:   Wed Feb 6 13:07:55 2019 +0200

    Apply patches from pkgsrc mesa to avoid atexit on a library.

    This isn't safe to do on netbsd and results in segfaults on
    program exit.

commit 335ea9c725374db31fe809a7d7f33ad8a83edd3e
Author: Maya Rashish <maya@@NetBSD.org>
Date:   Sat Jan 19 16:32:28 2019 +0200

    Avoid left-shifting a negative (UB), appeases clang

commit 452e5dc79ee89292fe771cf0e1066d1fad55adfa
Author: Maya Rashish <maya@@NetBSD.org>
Date:   Sat Jan 12 17:02:04 2019 +0200

    radeon picture_type is h264 and the enums match, cast to avoid

    clang warning (we use -Werror)

commit 61b4bc2f7ca8d78bd4092df76daeb27621d2ea7d
Author: Maya Rashish <maya@@NetBSD.org>
Date:   Fri Jan 11 19:57:34 2019 +0200

    Avoid redefinition, for clang.

commit c73fac417444cd79ee5a7a89b4a0fdf931e5122d
Author: Maya Rashish <maya@@NetBSD.org>
Date:   Sun Jan 6 19:52:12 2019 +0200

    Fix some printf specifiers.

    XXX more upstreaming
    radeon_dma.c: https://gitlab.freedesktop.org/mesa/mesa/merge_requests/68

commit 09341f929e9d3b03a3caacaa630521bc76680344
Author: Maya Rashish <maya@@NetBSD.org>
Date:   Sat Feb 23 11:51:50 2019 +0200
@
text
@/*
 * Copyright © 2010 Intel Corporation
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice (including the next
 * paragraph) shall be included in all copies or substantial portions of the
 * Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 * DEALINGS IN THE SOFTWARE.
 */

/**
 * \file ast_to_hir.c
 * Convert abstract syntax to to high-level intermediate reprensentation (HIR).
 *
 * During the conversion to HIR, the majority of the symantic checking is
 * preformed on the program.  This includes:
 *
 *    * Symbol table management
 *    * Type checking
 *    * Function binding
 *
 * The majority of this work could be done during parsing, and the parser could
 * probably generate HIR directly.  However, this results in frequent changes
 * to the parser code.  Since we do not assume that every system this complier
 * is built on will have Flex and Bison installed, we have to store the code
 * generated by these tools in our version control system.  In other parts of
 * the system we've seen problems where a parser was changed but the generated
 * code was not committed, merge conflicts where created because two developers
 * had slightly different versions of Bison installed, etc.
 *
 * I have also noticed that running Bison generated parsers in GDB is very
 * irritating.  When you get a segfault on '$$ = $1->foo', you can't very
 * well 'print $1' in GDB.
 *
 * As a result, my preference is to put as little C code as possible in the
 * parser (and lexer) sources.
 */

#include "main/core.h" /* for struct gl_extensions */
#include "glsl_symbol_table.h"
#include "glsl_parser_extras.h"
#include "ast.h"
#include "glsl_types.h"
#include "ir.h"

void
_mesa_ast_to_hir(exec_list *instructions, struct _mesa_glsl_parse_state *state)
{
   _mesa_glsl_initialize_variables(instructions, state);
   _mesa_glsl_initialize_functions(state);

   state->symbols->language_version = state->language_version;

   state->current_function = NULL;

   state->toplevel_ir = instructions;

   /* Section 4.2 of the GLSL 1.20 specification states:
    * "The built-in functions are scoped in a scope outside the global scope
    *  users declare global variables in.  That is, a shader's global scope,
    *  available for user-defined functions and global variables, is nested
    *  inside the scope containing the built-in functions."
    *
    * Since built-in functions like ftransform() access built-in variables,
    * it follows that those must be in the outer scope as well.
    *
    * We push scope here to create this nesting effect...but don't pop.
    * This way, a shader's globals are still in the symbol table for use
    * by the linker.
    */
   state->symbols->push_scope();

   foreach_list_typed (ast_node, ast, link, & state->translation_unit)
      ast->hir(instructions, state);

   detect_recursion_unlinked(state, instructions);

   state->toplevel_ir = NULL;
}


/**
 * If a conversion is available, convert one operand to a different type
 *
 * The \c from \c ir_rvalue is converted "in place".
 *
 * \param to     Type that the operand it to be converted to
 * \param from   Operand that is being converted
 * \param state  GLSL compiler state
 *
 * \return
 * If a conversion is possible (or unnecessary), \c true is returned.
 * Otherwise \c false is returned.
 */
bool
apply_implicit_conversion(const glsl_type *to, ir_rvalue * &from,
			  struct _mesa_glsl_parse_state *state)
{
   void *ctx = state;
   if (to->base_type == from->type->base_type)
      return true;

   /* This conversion was added in GLSL 1.20.  If the compilation mode is
    * GLSL 1.10, the conversion is skipped.
    */
   if (state->language_version < 120)
      return false;

   /* From page 27 (page 33 of the PDF) of the GLSL 1.50 spec:
    *
    *    "There are no implicit array or structure conversions. For
    *    example, an array of int cannot be implicitly converted to an
    *    array of float. There are no implicit conversions between
    *    signed and unsigned integers."
    */
   /* FINISHME: The above comment is partially a lie.  There is int/uint
    * FINISHME: conversion for immediate constants.
    */
   if (!to->is_float() || !from->type->is_numeric())
      return false;

   /* Convert to a floating point type with the same number of components
    * as the original type - i.e. int to float, not int to vec4.
    */
   to = glsl_type::get_instance(GLSL_TYPE_FLOAT, from->type->vector_elements,
			        from->type->matrix_columns);

   switch (from->type->base_type) {
   case GLSL_TYPE_INT:
      from = new(ctx) ir_expression(ir_unop_i2f, to, from, NULL);
      break;
   case GLSL_TYPE_UINT:
      from = new(ctx) ir_expression(ir_unop_u2f, to, from, NULL);
      break;
   case GLSL_TYPE_BOOL:
      from = new(ctx) ir_expression(ir_unop_b2f, to, from, NULL);
      break;
   default:
      assert(0);
   }

   return true;
}


static const struct glsl_type *
arithmetic_result_type(ir_rvalue * &value_a, ir_rvalue * &value_b,
		       bool multiply,
		       struct _mesa_glsl_parse_state *state, YYLTYPE *loc)
{
   const glsl_type *type_a = value_a->type;
   const glsl_type *type_b = value_b->type;

   /* From GLSL 1.50 spec, page 56:
    *
    *    "The arithmetic binary operators add (+), subtract (-),
    *    multiply (*), and divide (/) operate on integer and
    *    floating-point scalars, vectors, and matrices."
    */
   if (!type_a->is_numeric() || !type_b->is_numeric()) {
      _mesa_glsl_error(loc, state,
		       "Operands to arithmetic operators must be numeric");
      return glsl_type::error_type;
   }


   /*    "If one operand is floating-point based and the other is
    *    not, then the conversions from Section 4.1.10 "Implicit
    *    Conversions" are applied to the non-floating-point-based operand."
    */
   if (!apply_implicit_conversion(type_a, value_b, state)
       && !apply_implicit_conversion(type_b, value_a, state)) {
      _mesa_glsl_error(loc, state,
		       "Could not implicitly convert operands to "
		       "arithmetic operator");
      return glsl_type::error_type;
   }
   type_a = value_a->type;
   type_b = value_b->type;

   /*    "If the operands are integer types, they must both be signed or
    *    both be unsigned."
    *
    * From this rule and the preceeding conversion it can be inferred that
    * both types must be GLSL_TYPE_FLOAT, or GLSL_TYPE_UINT, or GLSL_TYPE_INT.
    * The is_numeric check above already filtered out the case where either
    * type is not one of these, so now the base types need only be tested for
    * equality.
    */
   if (type_a->base_type != type_b->base_type) {
      _mesa_glsl_error(loc, state,
		       "base type mismatch for arithmetic operator");
      return glsl_type::error_type;
   }

   /*    "All arithmetic binary operators result in the same fundamental type
    *    (signed integer, unsigned integer, or floating-point) as the
    *    operands they operate on, after operand type conversion. After
    *    conversion, the following cases are valid
    *
    *    * The two operands are scalars. In this case the operation is
    *      applied, resulting in a scalar."
    */
   if (type_a->is_scalar() && type_b->is_scalar())
      return type_a;

   /*   "* One operand is a scalar, and the other is a vector or matrix.
    *      In this case, the scalar operation is applied independently to each
    *      component of the vector or matrix, resulting in the same size
    *      vector or matrix."
    */
   if (type_a->is_scalar()) {
      if (!type_b->is_scalar())
	 return type_b;
   } else if (type_b->is_scalar()) {
      return type_a;
   }

   /* All of the combinations of <scalar, scalar>, <vector, scalar>,
    * <scalar, vector>, <scalar, matrix>, and <matrix, scalar> have been
    * handled.
    */
   assert(!type_a->is_scalar());
   assert(!type_b->is_scalar());

   /*   "* The two operands are vectors of the same size. In this case, the
    *      operation is done component-wise resulting in the same size
    *      vector."
    */
   if (type_a->is_vector() && type_b->is_vector()) {
      if (type_a == type_b) {
	 return type_a;
      } else {
	 _mesa_glsl_error(loc, state,
			  "vector size mismatch for arithmetic operator");
	 return glsl_type::error_type;
      }
   }

   /* All of the combinations of <scalar, scalar>, <vector, scalar>,
    * <scalar, vector>, <scalar, matrix>, <matrix, scalar>, and
    * <vector, vector> have been handled.  At least one of the operands must
    * be matrix.  Further, since there are no integer matrix types, the base
    * type of both operands must be float.
    */
   assert(type_a->is_matrix() || type_b->is_matrix());
   assert(type_a->base_type == GLSL_TYPE_FLOAT);
   assert(type_b->base_type == GLSL_TYPE_FLOAT);

   /*   "* The operator is add (+), subtract (-), or divide (/), and the
    *      operands are matrices with the same number of rows and the same
    *      number of columns. In this case, the operation is done component-
    *      wise resulting in the same size matrix."
    *    * The operator is multiply (*), where both operands are matrices or
    *      one operand is a vector and the other a matrix. A right vector
    *      operand is treated as a column vector and a left vector operand as a
    *      row vector. In all these cases, it is required that the number of
    *      columns of the left operand is equal to the number of rows of the
    *      right operand. Then, the multiply (*) operation does a linear
    *      algebraic multiply, yielding an object that has the same number of
    *      rows as the left operand and the same number of columns as the right
    *      operand. Section 5.10 "Vector and Matrix Operations" explains in
    *      more detail how vectors and matrices are operated on."
    */
   if (! multiply) {
      if (type_a == type_b)
	 return type_a;
   } else {
      if (type_a->is_matrix() && type_b->is_matrix()) {
	 /* Matrix multiply.  The columns of A must match the rows of B.  Given
	  * the other previously tested constraints, this means the vector type
	  * of a row from A must be the same as the vector type of a column from
	  * B.
	  */
	 if (type_a->row_type() == type_b->column_type()) {
	    /* The resulting matrix has the number of columns of matrix B and
	     * the number of rows of matrix A.  We get the row count of A by
	     * looking at the size of a vector that makes up a column.  The
	     * transpose (size of a row) is done for B.
	     */
	    const glsl_type *const type =
	       glsl_type::get_instance(type_a->base_type,
				       type_a->column_type()->vector_elements,
				       type_b->row_type()->vector_elements);
	    assert(type != glsl_type::error_type);

	    return type;
	 }
      } else if (type_a->is_matrix()) {
	 /* A is a matrix and B is a column vector.  Columns of A must match
	  * rows of B.  Given the other previously tested constraints, this
	  * means the vector type of a row from A must be the same as the
	  * vector the type of B.
	  */
	 if (type_a->row_type() == type_b) {
	    /* The resulting vector has a number of elements equal to
	     * the number of rows of matrix A. */
	    const glsl_type *const type =
	       glsl_type::get_instance(type_a->base_type,
				       type_a->column_type()->vector_elements,
				       1);
	    assert(type != glsl_type::error_type);

	    return type;
	 }
      } else {
	 assert(type_b->is_matrix());

	 /* A is a row vector and B is a matrix.  Columns of A must match rows
	  * of B.  Given the other previously tested constraints, this means
	  * the type of A must be the same as the vector type of a column from
	  * B.
	  */
	 if (type_a == type_b->column_type()) {
	    /* The resulting vector has a number of elements equal to
	     * the number of columns of matrix B. */
	    const glsl_type *const type =
	       glsl_type::get_instance(type_a->base_type,
				       type_b->row_type()->vector_elements,
				       1);
	    assert(type != glsl_type::error_type);

	    return type;
	 }
      }

      _mesa_glsl_error(loc, state, "size mismatch for matrix multiplication");
      return glsl_type::error_type;
   }


   /*    "All other cases are illegal."
    */
   _mesa_glsl_error(loc, state, "type mismatch");
   return glsl_type::error_type;
}


static const struct glsl_type *
unary_arithmetic_result_type(const struct glsl_type *type,
			     struct _mesa_glsl_parse_state *state, YYLTYPE *loc)
{
   /* From GLSL 1.50 spec, page 57:
    *
    *    "The arithmetic unary operators negate (-), post- and pre-increment
    *     and decrement (-- and ++) operate on integer or floating-point
    *     values (including vectors and matrices). All unary operators work
    *     component-wise on their operands. These result with the same type
    *     they operated on."
    */
   if (!type->is_numeric()) {
      _mesa_glsl_error(loc, state,
		       "Operands to arithmetic operators must be numeric");
      return glsl_type::error_type;
   }

   return type;
}

/**
 * \brief Return the result type of a bit-logic operation.
 *
 * If the given types to the bit-logic operator are invalid, return
 * glsl_type::error_type.
 *
 * \param type_a Type of LHS of bit-logic op
 * \param type_b Type of RHS of bit-logic op
 */
static const struct glsl_type *
bit_logic_result_type(const struct glsl_type *type_a,
                      const struct glsl_type *type_b,
                      ast_operators op,
                      struct _mesa_glsl_parse_state *state, YYLTYPE *loc)
{
    if (state->language_version < 130) {
       _mesa_glsl_error(loc, state, "bit operations require GLSL 1.30");
       return glsl_type::error_type;
    }

    /* From page 50 (page 56 of PDF) of GLSL 1.30 spec:
     *
     *     "The bitwise operators and (&), exclusive-or (^), and inclusive-or
     *     (|). The operands must be of type signed or unsigned integers or
     *     integer vectors."
     */
    if (!type_a->is_integer()) {
       _mesa_glsl_error(loc, state, "LHS of `%s' must be an integer",
                         ast_expression::operator_string(op));
       return glsl_type::error_type;
    }
    if (!type_b->is_integer()) {
       _mesa_glsl_error(loc, state, "RHS of `%s' must be an integer",
                        ast_expression::operator_string(op));
       return glsl_type::error_type;
    }

    /*     "The fundamental types of the operands (signed or unsigned) must
     *     match,"
     */
    if (type_a->base_type != type_b->base_type) {
       _mesa_glsl_error(loc, state, "operands of `%s' must have the same "
                        "base type", ast_expression::operator_string(op));
       return glsl_type::error_type;
    }

    /*     "The operands cannot be vectors of differing size." */
    if (type_a->is_vector() &&
        type_b->is_vector() &&
        type_a->vector_elements != type_b->vector_elements) {
       _mesa_glsl_error(loc, state, "operands of `%s' cannot be vectors of "
                        "different sizes", ast_expression::operator_string(op));
       return glsl_type::error_type;
    }

    /*     "If one operand is a scalar and the other a vector, the scalar is
     *     applied component-wise to the vector, resulting in the same type as
     *     the vector. The fundamental types of the operands [...] will be the
     *     resulting fundamental type."
     */
    if (type_a->is_scalar())
        return type_b;
    else
        return type_a;
}

static const struct glsl_type *
modulus_result_type(const struct glsl_type *type_a,
		    const struct glsl_type *type_b,
		    struct _mesa_glsl_parse_state *state, YYLTYPE *loc)
{
   if (state->language_version < 130) {
      _mesa_glsl_error(loc, state,
                       "operator '%%' is reserved in %s",
                       state->version_string);
      return glsl_type::error_type;
   }

   /* From GLSL 1.50 spec, page 56:
    *    "The operator modulus (%) operates on signed or unsigned integers or
    *    integer vectors. The operand types must both be signed or both be
    *    unsigned."
    */
   if (!type_a->is_integer() || !type_b->is_integer()
       || (type_a->base_type != type_b->base_type)) {
      _mesa_glsl_error(loc, state, "type mismatch");
      return glsl_type::error_type;
   }

   /*    "The operands cannot be vectors of differing size. If one operand is
    *    a scalar and the other vector, then the scalar is applied component-
    *    wise to the vector, resulting in the same type as the vector. If both
    *    are vectors of the same size, the result is computed component-wise."
    */
   if (type_a->is_vector()) {
      if (!type_b->is_vector()
	  || (type_a->vector_elements == type_b->vector_elements))
	 return type_a;
   } else
      return type_b;

   /*    "The operator modulus (%) is not defined for any other data types
    *    (non-integer types)."
    */
   _mesa_glsl_error(loc, state, "type mismatch");
   return glsl_type::error_type;
}


static const struct glsl_type *
relational_result_type(ir_rvalue * &value_a, ir_rvalue * &value_b,
		       struct _mesa_glsl_parse_state *state, YYLTYPE *loc)
{
   const glsl_type *type_a = value_a->type;
   const glsl_type *type_b = value_b->type;

   /* From GLSL 1.50 spec, page 56:
    *    "The relational operators greater than (>), less than (<), greater
    *    than or equal (>=), and less than or equal (<=) operate only on
    *    scalar integer and scalar floating-point expressions."
    */
   if (!type_a->is_numeric()
       || !type_b->is_numeric()
       || !type_a->is_scalar()
       || !type_b->is_scalar()) {
      _mesa_glsl_error(loc, state,
		       "Operands to relational operators must be scalar and "
		       "numeric");
      return glsl_type::error_type;
   }

   /*    "Either the operands' types must match, or the conversions from
    *    Section 4.1.10 "Implicit Conversions" will be applied to the integer
    *    operand, after which the types must match."
    */
   if (!apply_implicit_conversion(type_a, value_b, state)
       && !apply_implicit_conversion(type_b, value_a, state)) {
      _mesa_glsl_error(loc, state,
		       "Could not implicitly convert operands to "
		       "relational operator");
      return glsl_type::error_type;
   }
   type_a = value_a->type;
   type_b = value_b->type;

   if (type_a->base_type != type_b->base_type) {
      _mesa_glsl_error(loc, state, "base type mismatch");
      return glsl_type::error_type;
   }

   /*    "The result is scalar Boolean."
    */
   return glsl_type::bool_type;
}

/**
 * \brief Return the result type of a bit-shift operation.
 *
 * If the given types to the bit-shift operator are invalid, return
 * glsl_type::error_type.
 *
 * \param type_a Type of LHS of bit-shift op
 * \param type_b Type of RHS of bit-shift op
 */
static const struct glsl_type *
shift_result_type(const struct glsl_type *type_a,
                  const struct glsl_type *type_b,
                  ast_operators op,
                  struct _mesa_glsl_parse_state *state, YYLTYPE *loc)
{
   if (state->language_version < 130) {
      _mesa_glsl_error(loc, state, "bit operations require GLSL 1.30");
      return glsl_type::error_type;
   }

   /* From page 50 (page 56 of the PDF) of the GLSL 1.30 spec:
    *
    *     "The shift operators (<<) and (>>). For both operators, the operands
    *     must be signed or unsigned integers or integer vectors. One operand
    *     can be signed while the other is unsigned."
    */
   if (!type_a->is_integer()) {
      _mesa_glsl_error(loc, state, "LHS of operator %s must be an integer or "
              "integer vector", ast_expression::operator_string(op));
     return glsl_type::error_type;

   }
   if (!type_b->is_integer()) {
      _mesa_glsl_error(loc, state, "RHS of operator %s must be an integer or "
              "integer vector", ast_expression::operator_string(op));
     return glsl_type::error_type;
   }

   /*     "If the first operand is a scalar, the second operand has to be
    *     a scalar as well."
    */
   if (type_a->is_scalar() && !type_b->is_scalar()) {
      _mesa_glsl_error(loc, state, "If the first operand of %s is scalar, the "
              "second must be scalar as well",
              ast_expression::operator_string(op));
     return glsl_type::error_type;
   }

   /* If both operands are vectors, check that they have same number of
    * elements.
    */
   if (type_a->is_vector() &&
      type_b->is_vector() &&
      type_a->vector_elements != type_b->vector_elements) {
      _mesa_glsl_error(loc, state, "Vector operands to operator %s must "
              "have same number of elements",
              ast_expression::operator_string(op));
     return glsl_type::error_type;
   }

   /*     "In all cases, the resulting type will be the same type as the left
    *     operand."
    */
   return type_a;
}

/**
 * Validates that a value can be assigned to a location with a specified type
 *
 * Validates that \c rhs can be assigned to some location.  If the types are
 * not an exact match but an automatic conversion is possible, \c rhs will be
 * converted.
 *
 * \return
 * \c NULL if \c rhs cannot be assigned to a location with type \c lhs_type.
 * Otherwise the actual RHS to be assigned will be returned.  This may be
 * \c rhs, or it may be \c rhs after some type conversion.
 *
 * \note
 * In addition to being used for assignments, this function is used to
 * type-check return values.
 */
ir_rvalue *
validate_assignment(struct _mesa_glsl_parse_state *state,
		    const glsl_type *lhs_type, ir_rvalue *rhs,
		    bool is_initializer)
{
   /* If there is already some error in the RHS, just return it.  Anything
    * else will lead to an avalanche of error message back to the user.
    */
   if (rhs->type->is_error())
      return rhs;

   /* If the types are identical, the assignment can trivially proceed.
    */
   if (rhs->type == lhs_type)
      return rhs;

   /* If the array element types are the same and the size of the LHS is zero,
    * the assignment is okay for initializers embedded in variable
    * declarations.
    *
    * Note: Whole-array assignments are not permitted in GLSL 1.10, but this
    * is handled by ir_dereference::is_lvalue.
    */
   if (is_initializer && lhs_type->is_array() && rhs->type->is_array()
       && (lhs_type->element_type() == rhs->type->element_type())
       && (lhs_type->array_size() == 0)) {
      return rhs;
   }

   /* Check for implicit conversion in GLSL 1.20 */
   if (apply_implicit_conversion(lhs_type, rhs, state)) {
      if (rhs->type == lhs_type)
	 return rhs;
   }

   return NULL;
}

static void
mark_whole_array_access(ir_rvalue *access)
{
   ir_dereference_variable *deref = access->as_dereference_variable();

   if (deref && deref->var) {
      deref->var->max_array_access = deref->type->length - 1;
   }
}

ir_rvalue *
do_assignment(exec_list *instructions, struct _mesa_glsl_parse_state *state,
	      ir_rvalue *lhs, ir_rvalue *rhs, bool is_initializer,
	      YYLTYPE lhs_loc)
{
   void *ctx = state;
   bool error_emitted = (lhs->type->is_error() || rhs->type->is_error());

   if (!error_emitted) {
      if (lhs->variable_referenced() != NULL
          && lhs->variable_referenced()->read_only) {
         _mesa_glsl_error(&lhs_loc, state,
                          "assignment to read-only variable '%s'",
                          lhs->variable_referenced()->name);
         error_emitted = true;

      } else if (state->language_version <= 110 && lhs->type->is_array()) {
	 /* From page 32 (page 38 of the PDF) of the GLSL 1.10 spec:
	  *
	  *    "Other binary or unary expressions, non-dereferenced
	  *     arrays, function names, swizzles with repeated fields,
	  *     and constants cannot be l-values."
	  */
	 _mesa_glsl_error(&lhs_loc, state, "whole array assignment is not "
			  "allowed in GLSL 1.10 or GLSL ES 1.00.");
	 error_emitted = true;
      } else if (!lhs->is_lvalue()) {
	 _mesa_glsl_error(& lhs_loc, state, "non-lvalue in assignment");
	 error_emitted = true;
      }
   }

   ir_rvalue *new_rhs =
      validate_assignment(state, lhs->type, rhs, is_initializer);
   if (new_rhs == NULL) {
      _mesa_glsl_error(& lhs_loc, state, "type mismatch");
   } else {
      rhs = new_rhs;

      /* If the LHS array was not declared with a size, it takes it size from
       * the RHS.  If the LHS is an l-value and a whole array, it must be a
       * dereference of a variable.  Any other case would require that the LHS
       * is either not an l-value or not a whole array.
       */
      if (lhs->type->array_size() == 0) {
	 ir_dereference *const d = lhs->as_dereference();

	 assert(d != NULL);

	 ir_variable *const var = d->variable_referenced();

	 assert(var != NULL);

	 if (var->max_array_access >= unsigned(rhs->type->array_size())) {
	    /* FINISHME: This should actually log the location of the RHS. */
	    _mesa_glsl_error(& lhs_loc, state, "array size must be > %u due to "
			     "previous access",
			     var->max_array_access);
	 }

	 var->type = glsl_type::get_array_instance(lhs->type->element_type(),
						   rhs->type->array_size());
	 d->type = var->type;
      }
      mark_whole_array_access(rhs);
      mark_whole_array_access(lhs);
   }

   /* Most callers of do_assignment (assign, add_assign, pre_inc/dec,
    * but not post_inc) need the converted assigned value as an rvalue
    * to handle things like:
    *
    * i = j += 1;
    *
    * So we always just store the computed value being assigned to a
    * temporary and return a deref of that temporary.  If the rvalue
    * ends up not being used, the temp will get copy-propagated out.
    */
   ir_variable *var = new(ctx) ir_variable(rhs->type, "assignment_tmp",
					   ir_var_temporary);
   ir_dereference_variable *deref_var = new(ctx) ir_dereference_variable(var);
   instructions->push_tail(var);
   instructions->push_tail(new(ctx) ir_assignment(deref_var,
						  rhs,
						  NULL));
   deref_var = new(ctx) ir_dereference_variable(var);

   if (!error_emitted)
      instructions->push_tail(new(ctx) ir_assignment(lhs, deref_var, NULL));

   return new(ctx) ir_dereference_variable(var);
}

static ir_rvalue *
get_lvalue_copy(exec_list *instructions, ir_rvalue *lvalue)
{
   void *ctx = ralloc_parent(lvalue);
   ir_variable *var;

   var = new(ctx) ir_variable(lvalue->type, "_post_incdec_tmp",
			      ir_var_temporary);
   instructions->push_tail(var);
   var->mode = ir_var_auto;

   instructions->push_tail(new(ctx) ir_assignment(new(ctx) ir_dereference_variable(var),
						  lvalue, NULL));

   /* Once we've created this temporary, mark it read only so it's no
    * longer considered an lvalue.
    */
   var->read_only = true;

   return new(ctx) ir_dereference_variable(var);
}


ir_rvalue *
ast_node::hir(exec_list *instructions,
	      struct _mesa_glsl_parse_state *state)
{
   (void) instructions;
   (void) state;

   return NULL;
}

static ir_rvalue *
do_comparison(void *mem_ctx, int operation, ir_rvalue *op0, ir_rvalue *op1)
{
   int join_op;
   ir_rvalue *cmp = NULL;

   if (operation == ir_binop_all_equal)
      join_op = ir_binop_logic_and;
   else
      join_op = ir_binop_logic_or;

   switch (op0->type->base_type) {
   case GLSL_TYPE_FLOAT:
   case GLSL_TYPE_UINT:
   case GLSL_TYPE_INT:
   case GLSL_TYPE_BOOL:
      return new(mem_ctx) ir_expression(operation, op0, op1);

   case GLSL_TYPE_ARRAY: {
      for (unsigned int i = 0; i < op0->type->length; i++) {
	 ir_rvalue *e0, *e1, *result;

	 e0 = new(mem_ctx) ir_dereference_array(op0->clone(mem_ctx, NULL),
						new(mem_ctx) ir_constant(i));
	 e1 = new(mem_ctx) ir_dereference_array(op1->clone(mem_ctx, NULL),
						new(mem_ctx) ir_constant(i));
	 result = do_comparison(mem_ctx, operation, e0, e1);

	 if (cmp) {
	    cmp = new(mem_ctx) ir_expression(join_op, cmp, result);
	 } else {
	    cmp = result;
	 }
      }

      mark_whole_array_access(op0);
      mark_whole_array_access(op1);
      break;
   }

   case GLSL_TYPE_STRUCT: {
      for (unsigned int i = 0; i < op0->type->length; i++) {
	 ir_rvalue *e0, *e1, *result;
	 const char *field_name = op0->type->fields.structure[i].name;

	 e0 = new(mem_ctx) ir_dereference_record(op0->clone(mem_ctx, NULL),
						 field_name);
	 e1 = new(mem_ctx) ir_dereference_record(op1->clone(mem_ctx, NULL),
						 field_name);
	 result = do_comparison(mem_ctx, operation, e0, e1);

	 if (cmp) {
	    cmp = new(mem_ctx) ir_expression(join_op, cmp, result);
	 } else {
	    cmp = result;
	 }
      }
      break;
   }

   case GLSL_TYPE_ERROR:
   case GLSL_TYPE_VOID:
   case GLSL_TYPE_SAMPLER:
      /* I assume a comparison of a struct containing a sampler just
       * ignores the sampler present in the type.
       */
      break;

   default:
      assert(!"Should not get here.");
      break;
   }

   if (cmp == NULL)
      cmp = new(mem_ctx) ir_constant(true);

   return cmp;
}

/* For logical operations, we want to ensure that the operands are
 * scalar booleans.  If it isn't, emit an error and return a constant
 * boolean to avoid triggering cascading error messages.
 */
ir_rvalue *
get_scalar_boolean_operand(exec_list *instructions,
			   struct _mesa_glsl_parse_state *state,
			   ast_expression *parent_expr,
			   int operand,
			   const char *operand_name,
			   bool *error_emitted)
{
   ast_expression *expr = parent_expr->subexpressions[operand];
   void *ctx = state;
   ir_rvalue *val = expr->hir(instructions, state);

   if (val->type->is_boolean() && val->type->is_scalar())
      return val;

   if (!*error_emitted) {
      YYLTYPE loc = expr->get_location();
      _mesa_glsl_error(&loc, state, "%s of `%s' must be scalar boolean",
		       operand_name,
		       parent_expr->operator_string(parent_expr->oper));
      *error_emitted = true;
   }

   return new(ctx) ir_constant(true);
}

/**
 * If name refers to a builtin array whose maximum allowed size is less than
 * size, report an error and return true.  Otherwise return false.
 */
static bool
check_builtin_array_max_size(const char *name, unsigned size,
                             YYLTYPE loc, struct _mesa_glsl_parse_state *state)
{
   if ((strcmp("gl_TexCoord", name) == 0)
       && (size > state->Const.MaxTextureCoords)) {
      /* From page 54 (page 60 of the PDF) of the GLSL 1.20 spec:
       *
       *     "The size [of gl_TexCoord] can be at most
       *     gl_MaxTextureCoords."
       */
      _mesa_glsl_error(&loc, state, "`gl_TexCoord' array size cannot "
                       "be larger than gl_MaxTextureCoords (%u)\n",
                       state->Const.MaxTextureCoords);
      return true;
   }
   return false;
}

ir_rvalue *
ast_expression::hir(exec_list *instructions,
		    struct _mesa_glsl_parse_state *state)
{
   void *ctx = state;
   static const int operations[AST_NUM_OPERATORS] = {
      -1,               /* ast_assign doesn't convert to ir_expression. */
      -1,               /* ast_plus doesn't convert to ir_expression. */
      ir_unop_neg,
      ir_binop_add,
      ir_binop_sub,
      ir_binop_mul,
      ir_binop_div,
      ir_binop_mod,
      ir_binop_lshift,
      ir_binop_rshift,
      ir_binop_less,
      ir_binop_greater,
      ir_binop_lequal,
      ir_binop_gequal,
      ir_binop_all_equal,
      ir_binop_any_nequal,
      ir_binop_bit_and,
      ir_binop_bit_xor,
      ir_binop_bit_or,
      ir_unop_bit_not,
      ir_binop_logic_and,
      ir_binop_logic_xor,
      ir_binop_logic_or,
      ir_unop_logic_not,

      /* Note: The following block of expression types actually convert
       * to multiple IR instructions.
       */
      ir_binop_mul,     /* ast_mul_assign */
      ir_binop_div,     /* ast_div_assign */
      ir_binop_mod,     /* ast_mod_assign */
      ir_binop_add,     /* ast_add_assign */
      ir_binop_sub,     /* ast_sub_assign */
      ir_binop_lshift,  /* ast_ls_assign */
      ir_binop_rshift,  /* ast_rs_assign */
      ir_binop_bit_and, /* ast_and_assign */
      ir_binop_bit_xor, /* ast_xor_assign */
      ir_binop_bit_or,  /* ast_or_assign */

      -1,               /* ast_conditional doesn't convert to ir_expression. */
      ir_binop_add,     /* ast_pre_inc. */
      ir_binop_sub,     /* ast_pre_dec. */
      ir_binop_add,     /* ast_post_inc. */
      ir_binop_sub,     /* ast_post_dec. */
      -1,               /* ast_field_selection doesn't conv to ir_expression. */
      -1,               /* ast_array_index doesn't convert to ir_expression. */
      -1,               /* ast_function_call doesn't conv to ir_expression. */
      -1,               /* ast_identifier doesn't convert to ir_expression. */
      -1,               /* ast_int_constant doesn't convert to ir_expression. */
      -1,               /* ast_uint_constant doesn't conv to ir_expression. */
      -1,               /* ast_float_constant doesn't conv to ir_expression. */
      -1,               /* ast_bool_constant doesn't conv to ir_expression. */
      -1,               /* ast_sequence doesn't convert to ir_expression. */
   };
   ir_rvalue *result = NULL;
   ir_rvalue *op[3];
   const struct glsl_type *type; /* a temporary variable for switch cases */
   bool error_emitted = false;
   YYLTYPE loc;

   loc = this->get_location();

   switch (this->oper) {
   case ast_assign: {
      op[0] = this->subexpressions[0]->hir(instructions, state);
      op[1] = this->subexpressions[1]->hir(instructions, state);

      result = do_assignment(instructions, state, op[0], op[1], false,
			     this->subexpressions[0]->get_location());
      error_emitted = result->type->is_error();
      break;
   }

   case ast_plus:
      op[0] = this->subexpressions[0]->hir(instructions, state);

      type = unary_arithmetic_result_type(op[0]->type, state, & loc);

      error_emitted = type->is_error();

      result = op[0];
      break;

   case ast_neg:
      op[0] = this->subexpressions[0]->hir(instructions, state);

      type = unary_arithmetic_result_type(op[0]->type, state, & loc);

      error_emitted = type->is_error();

      result = new(ctx) ir_expression(operations[this->oper], type,
				      op[0], NULL);
      break;

   case ast_add:
   case ast_sub:
   case ast_mul:
   case ast_div:
      op[0] = this->subexpressions[0]->hir(instructions, state);
      op[1] = this->subexpressions[1]->hir(instructions, state);

      type = arithmetic_result_type(op[0], op[1],
				    (this->oper == ast_mul),
				    state, & loc);
      error_emitted = type->is_error();

      result = new(ctx) ir_expression(operations[this->oper], type,
				      op[0], op[1]);
      break;

   case ast_mod:
      op[0] = this->subexpressions[0]->hir(instructions, state);
      op[1] = this->subexpressions[1]->hir(instructions, state);

      type = modulus_result_type(op[0]->type, op[1]->type, state, & loc);

      assert(operations[this->oper] == ir_binop_mod);

      result = new(ctx) ir_expression(operations[this->oper], type,
				      op[0], op[1]);
      error_emitted = type->is_error();
      break;

   case ast_lshift:
   case ast_rshift:
       if (state->language_version < 130) {
          _mesa_glsl_error(&loc, state, "operator %s requires GLSL 1.30",
              operator_string(this->oper));
          error_emitted = true;
       }

       op[0] = this->subexpressions[0]->hir(instructions, state);
       op[1] = this->subexpressions[1]->hir(instructions, state);
       type = shift_result_type(op[0]->type, op[1]->type, this->oper, state,
                                &loc);
       result = new(ctx) ir_expression(operations[this->oper], type,
                                       op[0], op[1]);
       error_emitted = op[0]->type->is_error() || op[1]->type->is_error();
       break;

   case ast_less:
   case ast_greater:
   case ast_lequal:
   case ast_gequal:
      op[0] = this->subexpressions[0]->hir(instructions, state);
      op[1] = this->subexpressions[1]->hir(instructions, state);

      type = relational_result_type(op[0], op[1], state, & loc);

      /* The relational operators must either generate an error or result
       * in a scalar boolean.  See page 57 of the GLSL 1.50 spec.
       */
      assert(type->is_error()
	     || ((type->base_type == GLSL_TYPE_BOOL)
		 && type->is_scalar()));

      result = new(ctx) ir_expression(operations[this->oper], type,
				      op[0], op[1]);
      error_emitted = type->is_error();
      break;

   case ast_nequal:
   case ast_equal:
      op[0] = this->subexpressions[0]->hir(instructions, state);
      op[1] = this->subexpressions[1]->hir(instructions, state);

      /* From page 58 (page 64 of the PDF) of the GLSL 1.50 spec:
       *
       *    "The equality operators equal (==), and not equal (!=)
       *    operate on all types. They result in a scalar Boolean. If
       *    the operand types do not match, then there must be a
       *    conversion from Section 4.1.10 "Implicit Conversions"
       *    applied to one operand that can make them match, in which
       *    case this conversion is done."
       */
      if ((!apply_implicit_conversion(op[0]->type, op[1], state)
	   && !apply_implicit_conversion(op[1]->type, op[0], state))
	  || (op[0]->type != op[1]->type)) {
	 _mesa_glsl_error(& loc, state, "operands of `%s' must have the same "
			  "type", (this->oper == ast_equal) ? "==" : "!=");
	 error_emitted = true;
      } else if ((state->language_version <= 110)
		 && (op[0]->type->is_array() || op[1]->type->is_array())) {
	 _mesa_glsl_error(& loc, state, "array comparisons forbidden in "
			  "GLSL 1.10");
	 error_emitted = true;
      }

      if (error_emitted) {
	 result = new(ctx) ir_constant(false);
      } else {
	 result = do_comparison(ctx, operations[this->oper], op[0], op[1]);
	 assert(result->type == glsl_type::bool_type);
      }
      break;

   case ast_bit_and:
   case ast_bit_xor:
   case ast_bit_or:
      op[0] = this->subexpressions[0]->hir(instructions, state);
      op[1] = this->subexpressions[1]->hir(instructions, state);
      type = bit_logic_result_type(op[0]->type, op[1]->type, this->oper,
                                   state, &loc);
      result = new(ctx) ir_expression(operations[this->oper], type,
				      op[0], op[1]);
      error_emitted = op[0]->type->is_error() || op[1]->type->is_error();
      break;

   case ast_bit_not:
      op[0] = this->subexpressions[0]->hir(instructions, state);

      if (state->language_version < 130) {
	 _mesa_glsl_error(&loc, state, "bit-wise operations require GLSL 1.30");
	 error_emitted = true;
      }

      if (!op[0]->type->is_integer()) {
	 _mesa_glsl_error(&loc, state, "operand of `~' must be an integer");
	 error_emitted = true;
      }

      type = op[0]->type;
      result = new(ctx) ir_expression(ir_unop_bit_not, type, op[0], NULL);
      break;

   case ast_logic_and: {
      exec_list rhs_instructions;
      op[0] = get_scalar_boolean_operand(instructions, state, this, 0,
					 "LHS", &error_emitted);
      op[1] = get_scalar_boolean_operand(&rhs_instructions, state, this, 1,
					 "RHS", &error_emitted);

      ir_constant *op0_const = op[0]->constant_expression_value();
      if (op0_const) {
	 if (op0_const->value.b[0]) {
	    instructions->append_list(&rhs_instructions);
	    result = op[1];
	 } else {
	    result = op0_const;
	 }
	 type = glsl_type::bool_type;
      } else {
	 ir_variable *const tmp = new(ctx) ir_variable(glsl_type::bool_type,
						       "and_tmp",
						       ir_var_temporary);
	 instructions->push_tail(tmp);

	 ir_if *const stmt = new(ctx) ir_if(op[0]);
	 instructions->push_tail(stmt);

	 stmt->then_instructions.append_list(&rhs_instructions);
	 ir_dereference *const then_deref = new(ctx) ir_dereference_variable(tmp);
	 ir_assignment *const then_assign =
	    new(ctx) ir_assignment(then_deref, op[1], NULL);
	 stmt->then_instructions.push_tail(then_assign);

	 ir_dereference *const else_deref = new(ctx) ir_dereference_variable(tmp);
	 ir_assignment *const else_assign =
	    new(ctx) ir_assignment(else_deref, new(ctx) ir_constant(false), NULL);
	 stmt->else_instructions.push_tail(else_assign);

	 result = new(ctx) ir_dereference_variable(tmp);
	 type = tmp->type;
      }
      break;
   }

   case ast_logic_or: {
      exec_list rhs_instructions;
      op[0] = get_scalar_boolean_operand(instructions, state, this, 0,
					 "LHS", &error_emitted);
      op[1] = get_scalar_boolean_operand(&rhs_instructions, state, this, 1,
					 "RHS", &error_emitted);

      ir_constant *op0_const = op[0]->constant_expression_value();
      if (op0_const) {
	 if (op0_const->value.b[0]) {
	    result = op0_const;
	 } else {
	    result = op[1];
	 }
	 type = glsl_type::bool_type;
      } else {
	 ir_variable *const tmp = new(ctx) ir_variable(glsl_type::bool_type,
						       "or_tmp",
						       ir_var_temporary);
	 instructions->push_tail(tmp);

	 ir_if *const stmt = new(ctx) ir_if(op[0]);
	 instructions->push_tail(stmt);

	 ir_dereference *const then_deref = new(ctx) ir_dereference_variable(tmp);
	 ir_assignment *const then_assign =
	    new(ctx) ir_assignment(then_deref, new(ctx) ir_constant(true), NULL);
	 stmt->then_instructions.push_tail(then_assign);

	 stmt->else_instructions.append_list(&rhs_instructions);
	 ir_dereference *const else_deref = new(ctx) ir_dereference_variable(tmp);
	 ir_assignment *const else_assign =
	    new(ctx) ir_assignment(else_deref, op[1], NULL);
	 stmt->else_instructions.push_tail(else_assign);

	 result = new(ctx) ir_dereference_variable(tmp);
	 type = tmp->type;
      }
      break;
   }

   case ast_logic_xor:
      /* From page 33 (page 39 of the PDF) of the GLSL 1.10 spec:
       *
       *    "The logical binary operators and (&&), or ( | | ), and
       *     exclusive or (^^). They operate only on two Boolean
       *     expressions and result in a Boolean expression."
       */
      op[0] = get_scalar_boolean_operand(instructions, state, this, 0, "LHS",
					 &error_emitted);
      op[1] = get_scalar_boolean_operand(instructions, state, this, 1, "RHS",
					 &error_emitted);

      result = new(ctx) ir_expression(operations[this->oper], glsl_type::bool_type,
				      op[0], op[1]);
      break;

   case ast_logic_not:
      op[0] = get_scalar_boolean_operand(instructions, state, this, 0,
					 "operand", &error_emitted);

      result = new(ctx) ir_expression(operations[this->oper], glsl_type::bool_type,
				      op[0], NULL);
      break;

   case ast_mul_assign:
   case ast_div_assign:
   case ast_add_assign:
   case ast_sub_assign: {
      op[0] = this->subexpressions[0]->hir(instructions, state);
      op[1] = this->subexpressions[1]->hir(instructions, state);

      type = arithmetic_result_type(op[0], op[1],
				    (this->oper == ast_mul_assign),
				    state, & loc);

      ir_rvalue *temp_rhs = new(ctx) ir_expression(operations[this->oper], type,
						   op[0], op[1]);

      result = do_assignment(instructions, state,
			     op[0]->clone(ctx, NULL), temp_rhs, false,
			     this->subexpressions[0]->get_location());
      error_emitted = (op[0]->type->is_error());

      /* GLSL 1.10 does not allow array assignment.  However, we don't have to
       * explicitly test for this because none of the binary expression
       * operators allow array operands either.
       */

      break;
   }

   case ast_mod_assign: {
      op[0] = this->subexpressions[0]->hir(instructions, state);
      op[1] = this->subexpressions[1]->hir(instructions, state);

      type = modulus_result_type(op[0]->type, op[1]->type, state, & loc);

      assert(operations[this->oper] == ir_binop_mod);

      ir_rvalue *temp_rhs;
      temp_rhs = new(ctx) ir_expression(operations[this->oper], type,
					op[0], op[1]);

      result = do_assignment(instructions, state,
			     op[0]->clone(ctx, NULL), temp_rhs, false,
			     this->subexpressions[0]->get_location());
      error_emitted = type->is_error();
      break;
   }

   case ast_ls_assign:
   case ast_rs_assign: {
      op[0] = this->subexpressions[0]->hir(instructions, state);
      op[1] = this->subexpressions[1]->hir(instructions, state);
      type = shift_result_type(op[0]->type, op[1]->type, this->oper, state,
                               &loc);
      ir_rvalue *temp_rhs = new(ctx) ir_expression(operations[this->oper],
                                                   type, op[0], op[1]);
      result = do_assignment(instructions, state, op[0]->clone(ctx, NULL),
                             temp_rhs, false,
                             this->subexpressions[0]->get_location());
      error_emitted = op[0]->type->is_error() || op[1]->type->is_error();
      break;
   }

   case ast_and_assign:
   case ast_xor_assign:
   case ast_or_assign: {
      op[0] = this->subexpressions[0]->hir(instructions, state);
      op[1] = this->subexpressions[1]->hir(instructions, state);
      type = bit_logic_result_type(op[0]->type, op[1]->type, this->oper,
                                   state, &loc);
      ir_rvalue *temp_rhs = new(ctx) ir_expression(operations[this->oper],
                                                   type, op[0], op[1]);
      result = do_assignment(instructions, state, op[0]->clone(ctx, NULL),
                             temp_rhs, false,
                             this->subexpressions[0]->get_location());
      error_emitted = op[0]->type->is_error() || op[1]->type->is_error();
      break;
   }

   case ast_conditional: {
      /* From page 59 (page 65 of the PDF) of the GLSL 1.50 spec:
       *
       *    "The ternary selection operator (?:). It operates on three
       *    expressions (exp1 ? exp2 : exp3). This operator evaluates the
       *    first expression, which must result in a scalar Boolean."
       */
      op[0] = get_scalar_boolean_operand(instructions, state, this, 0,
					 "condition", &error_emitted);

      /* The :? operator is implemented by generating an anonymous temporary
       * followed by an if-statement.  The last instruction in each branch of
       * the if-statement assigns a value to the anonymous temporary.  This
       * temporary is the r-value of the expression.
       */
      exec_list then_instructions;
      exec_list else_instructions;

      op[1] = this->subexpressions[1]->hir(&then_instructions, state);
      op[2] = this->subexpressions[2]->hir(&else_instructions, state);

      /* From page 59 (page 65 of the PDF) of the GLSL 1.50 spec:
       *
       *     "The second and third expressions can be any type, as
       *     long their types match, or there is a conversion in
       *     Section 4.1.10 "Implicit Conversions" that can be applied
       *     to one of the expressions to make their types match. This
       *     resulting matching type is the type of the entire
       *     expression."
       */
      if ((!apply_implicit_conversion(op[1]->type, op[2], state)
	   && !apply_implicit_conversion(op[2]->type, op[1], state))
	  || (op[1]->type != op[2]->type)) {
	 YYLTYPE loc = this->subexpressions[1]->get_location();

	 _mesa_glsl_error(& loc, state, "Second and third operands of ?: "
			  "operator must have matching types.");
	 error_emitted = true;
	 type = glsl_type::error_type;
      } else {
	 type = op[1]->type;
      }

      /* From page 33 (page 39 of the PDF) of the GLSL 1.10 spec:
       *
       *    "The second and third expressions must be the same type, but can
       *    be of any type other than an array."
       */
      if ((state->language_version <= 110) && type->is_array()) {
	 _mesa_glsl_error(& loc, state, "Second and third operands of ?: "
			  "operator must not be arrays.");
	 error_emitted = true;
      }

      ir_constant *cond_val = op[0]->constant_expression_value();
      ir_constant *then_val = op[1]->constant_expression_value();
      ir_constant *else_val = op[2]->constant_expression_value();

      if (then_instructions.is_empty()
	  && else_instructions.is_empty()
	  && (cond_val != NULL) && (then_val != NULL) && (else_val != NULL)) {
	 result = (cond_val->value.b[0]) ? then_val : else_val;
      } else {
	 ir_variable *const tmp =
	    new(ctx) ir_variable(type, "conditional_tmp", ir_var_temporary);
	 instructions->push_tail(tmp);

	 ir_if *const stmt = new(ctx) ir_if(op[0]);
	 instructions->push_tail(stmt);

	 then_instructions.move_nodes_to(& stmt->then_instructions);
	 ir_dereference *const then_deref =
	    new(ctx) ir_dereference_variable(tmp);
	 ir_assignment *const then_assign =
	    new(ctx) ir_assignment(then_deref, op[1], NULL);
	 stmt->then_instructions.push_tail(then_assign);

	 else_instructions.move_nodes_to(& stmt->else_instructions);
	 ir_dereference *const else_deref =
	    new(ctx) ir_dereference_variable(tmp);
	 ir_assignment *const else_assign =
	    new(ctx) ir_assignment(else_deref, op[2], NULL);
	 stmt->else_instructions.push_tail(else_assign);

	 result = new(ctx) ir_dereference_variable(tmp);
      }
      break;
   }

   case ast_pre_inc:
   case ast_pre_dec: {
      op[0] = this->subexpressions[0]->hir(instructions, state);
      if (op[0]->type->base_type == GLSL_TYPE_FLOAT)
	 op[1] = new(ctx) ir_constant(1.0f);
      else
	 op[1] = new(ctx) ir_constant(1);

      type = arithmetic_result_type(op[0], op[1], false, state, & loc);

      ir_rvalue *temp_rhs;
      temp_rhs = new(ctx) ir_expression(operations[this->oper], type,
					op[0], op[1]);

      result = do_assignment(instructions, state,
			     op[0]->clone(ctx, NULL), temp_rhs, false,
			     this->subexpressions[0]->get_location());
      error_emitted = op[0]->type->is_error();
      break;
   }

   case ast_post_inc:
   case ast_post_dec: {
      op[0] = this->subexpressions[0]->hir(instructions, state);
      if (op[0]->type->base_type == GLSL_TYPE_FLOAT)
	 op[1] = new(ctx) ir_constant(1.0f);
      else
	 op[1] = new(ctx) ir_constant(1);

      error_emitted = op[0]->type->is_error() || op[1]->type->is_error();

      type = arithmetic_result_type(op[0], op[1], false, state, & loc);

      ir_rvalue *temp_rhs;
      temp_rhs = new(ctx) ir_expression(operations[this->oper], type,
					op[0], op[1]);

      /* Get a temporary of a copy of the lvalue before it's modified.
       * This may get thrown away later.
       */
      result = get_lvalue_copy(instructions, op[0]->clone(ctx, NULL));

      (void)do_assignment(instructions, state,
			  op[0]->clone(ctx, NULL), temp_rhs, false,
			  this->subexpressions[0]->get_location());

      error_emitted = op[0]->type->is_error();
      break;
   }

   case ast_field_selection:
      result = _mesa_ast_field_selection_to_hir(this, instructions, state);
      break;

   case ast_array_index: {
      YYLTYPE index_loc = subexpressions[1]->get_location();

      op[0] = subexpressions[0]->hir(instructions, state);
      op[1] = subexpressions[1]->hir(instructions, state);

      error_emitted = op[0]->type->is_error() || op[1]->type->is_error();

      ir_rvalue *const array = op[0];

      result = new(ctx) ir_dereference_array(op[0], op[1]);

      /* Do not use op[0] after this point.  Use array.
       */
      op[0] = NULL;


      if (error_emitted)
	 break;

      if (!array->type->is_array()
	  && !array->type->is_matrix()
	  && !array->type->is_vector()) {
	 _mesa_glsl_error(& index_loc, state,
			  "cannot dereference non-array / non-matrix / "
			  "non-vector");
	 error_emitted = true;
      }

      if (!op[1]->type->is_integer()) {
	 _mesa_glsl_error(& index_loc, state,
			  "array index must be integer type");
	 error_emitted = true;
      } else if (!op[1]->type->is_scalar()) {
	 _mesa_glsl_error(& index_loc, state,
			  "array index must be scalar");
	 error_emitted = true;
      }

      /* If the array index is a constant expression and the array has a
       * declared size, ensure that the access is in-bounds.  If the array
       * index is not a constant expression, ensure that the array has a
       * declared size.
       */
      ir_constant *const const_index = op[1]->constant_expression_value();
      if (const_index != NULL) {
	 const int idx = const_index->value.i[0];
	 const char *type_name;
	 unsigned bound = 0;

	 if (array->type->is_matrix()) {
	    type_name = "matrix";
	 } else if (array->type->is_vector()) {
	    type_name = "vector";
	 } else {
	    type_name = "array";
	 }

	 /* From page 24 (page 30 of the PDF) of the GLSL 1.50 spec:
	  *
	  *    "It is illegal to declare an array with a size, and then
	  *    later (in the same shader) index the same array with an
	  *    integral constant expression greater than or equal to the
	  *    declared size. It is also illegal to index an array with a
	  *    negative constant expression."
	  */
	 if (array->type->is_matrix()) {
	    if (array->type->row_type()->vector_elements <= idx) {
	       bound = array->type->row_type()->vector_elements;
	    }
	 } else if (array->type->is_vector()) {
	    if (array->type->vector_elements <= idx) {
	       bound = array->type->vector_elements;
	    }
	 } else {
	    if ((array->type->array_size() > 0)
		&& (array->type->array_size() <= idx)) {
	       bound = array->type->array_size();
	    }
	 }

	 if (bound > 0) {
	    _mesa_glsl_error(& loc, state, "%s index must be < %u",
			     type_name, bound);
	    error_emitted = true;
	 } else if (idx < 0) {
	    _mesa_glsl_error(& loc, state, "%s index must be >= 0",
			     type_name);
	    error_emitted = true;
	 }

	 if (array->type->is_array()) {
	    /* If the array is a variable dereference, it dereferences the
	     * whole array, by definition.  Use this to get the variable.
	     *
	     * FINISHME: Should some methods for getting / setting / testing
	     * FINISHME: array access limits be added to ir_dereference?
	     */
	    ir_variable *const v = array->whole_variable_referenced();
	    if ((v != NULL) && (unsigned(idx) > v->max_array_access)) {
	       v->max_array_access = idx;

               /* Check whether this access will, as a side effect, implicitly
                * cause the size of a built-in array to be too large.
                */
               if (check_builtin_array_max_size(v->name, idx+1, loc, state))
                  error_emitted = true;
            }
	 }
      } else if (array->type->array_size() == 0) {
	 _mesa_glsl_error(&loc, state, "unsized array index must be constant");
      } else {
	 if (array->type->is_array()) {
	    /* whole_variable_referenced can return NULL if the array is a
	     * member of a structure.  In this case it is safe to not update
	     * the max_array_access field because it is never used for fields
	     * of structures.
	     */
	    ir_variable *v = array->whole_variable_referenced();
	    if (v != NULL)
	       v->max_array_access = array->type->array_size() - 1;
	 }
      }

      /* From page 23 (29 of the PDF) of the GLSL 1.30 spec:
       *
       *    "Samplers aggregated into arrays within a shader (using square
       *    brackets [ ]) can only be indexed with integral constant
       *    expressions [...]."
       *
       * This restriction was added in GLSL 1.30.  Shaders using earlier version
       * of the language should not be rejected by the compiler front-end for
       * using this construct.  This allows useful things such as using a loop
       * counter as the index to an array of samplers.  If the loop in unrolled,
       * the code should compile correctly.  Instead, emit a warning.
       */
      if (array->type->is_array() &&
          array->type->element_type()->is_sampler() &&
          const_index == NULL) {

	 if (state->language_version == 100) {
	    _mesa_glsl_warning(&loc, state,
			       "sampler arrays indexed with non-constant "
			       "expressions is optional in GLSL ES 1.00");
	 } else if (state->language_version < 130) {
	    _mesa_glsl_warning(&loc, state,
			       "sampler arrays indexed with non-constant "
			       "expressions is forbidden in GLSL 1.30 and "
			       "later");
	 } else {
	    _mesa_glsl_error(&loc, state,
			     "sampler arrays indexed with non-constant "
			     "expressions is forbidden in GLSL 1.30 and "
			     "later");
	    error_emitted = true;
	 }
      }

      if (error_emitted)
	 result->type = glsl_type::error_type;

      break;
   }

   case ast_function_call:
      /* Should *NEVER* get here.  ast_function_call should always be handled
       * by ast_function_expression::hir.
       */
      assert(0);
      break;

   case ast_identifier: {
      /* ast_identifier can appear several places in a full abstract syntax
       * tree.  This particular use must be at location specified in the grammar
       * as 'variable_identifier'.
       */
      ir_variable *var = 
	 state->symbols->get_variable(this->primary_expression.identifier);

      result = new(ctx) ir_dereference_variable(var);

      if (var != NULL) {
	 var->used = true;
      } else {
	 _mesa_glsl_error(& loc, state, "`%s' undeclared",
			  this->primary_expression.identifier);

	 error_emitted = true;
      }
      break;
   }

   case ast_int_constant:
      result = new(ctx) ir_constant(this->primary_expression.int_constant);
      break;

   case ast_uint_constant:
      result = new(ctx) ir_constant(this->primary_expression.uint_constant);
      break;

   case ast_float_constant:
      result = new(ctx) ir_constant(this->primary_expression.float_constant);
      break;

   case ast_bool_constant:
      result = new(ctx) ir_constant(bool(this->primary_expression.bool_constant));
      break;

   case ast_sequence: {
      /* It should not be possible to generate a sequence in the AST without
       * any expressions in it.
       */
      assert(!this->expressions.is_empty());

      /* The r-value of a sequence is the last expression in the sequence.  If
       * the other expressions in the sequence do not have side-effects (and
       * therefore add instructions to the instruction list), they get dropped
       * on the floor.
       */
      exec_node *previous_tail_pred = NULL;
      YYLTYPE previous_operand_loc = loc;

      foreach_list_typed (ast_node, ast, link, &this->expressions) {
	 /* If one of the operands of comma operator does not generate any
	  * code, we want to emit a warning.  At each pass through the loop
	  * previous_tail_pred will point to the last instruction in the
	  * stream *before* processing the previous operand.  Naturally,
	  * instructions->tail_pred will point to the last instruction in the
	  * stream *after* processing the previous operand.  If the two
	  * pointers match, then the previous operand had no effect.
	  *
	  * The warning behavior here differs slightly from GCC.  GCC will
	  * only emit a warning if none of the left-hand operands have an
	  * effect.  However, it will emit a warning for each.  I believe that
	  * there are some cases in C (especially with GCC extensions) where
	  * it is useful to have an intermediate step in a sequence have no
	  * effect, but I don't think these cases exist in GLSL.  Either way,
	  * it would be a giant hassle to replicate that behavior.
	  */
	 if (previous_tail_pred == instructions->tail_pred) {
	    _mesa_glsl_warning(&previous_operand_loc, state,
			       "left-hand operand of comma expression has "
			       "no effect");
	 }

	 /* tail_pred is directly accessed instead of using the get_tail()
	  * method for performance reasons.  get_tail() has extra code to
	  * return NULL when the list is empty.  We don't care about that
	  * here, so using tail_pred directly is fine.
	  */
	 previous_tail_pred = instructions->tail_pred;
	 previous_operand_loc = ast->get_location();

	 result = ast->hir(instructions, state);
      }

      /* Any errors should have already been emitted in the loop above.
       */
      error_emitted = true;
      break;
   }
   }
   type = NULL; /* use result->type, not type. */
   assert(result != NULL);

   if (result->type->is_error() && !error_emitted)
      _mesa_glsl_error(& loc, state, "type mismatch");

   return result;
}


ir_rvalue *
ast_expression_statement::hir(exec_list *instructions,
			      struct _mesa_glsl_parse_state *state)
{
   /* It is possible to have expression statements that don't have an
    * expression.  This is the solitary semicolon:
    *
    * for (i = 0; i < 5; i++)
    *     ;
    *
    * In this case the expression will be NULL.  Test for NULL and don't do
    * anything in that case.
    */
   if (expression != NULL)
      expression->hir(instructions, state);

   /* Statements do not have r-values.
    */
   return NULL;
}


ir_rvalue *
ast_compound_statement::hir(exec_list *instructions,
			    struct _mesa_glsl_parse_state *state)
{
   if (new_scope)
      state->symbols->push_scope();

   foreach_list_typed (ast_node, ast, link, &this->statements)
      ast->hir(instructions, state);

   if (new_scope)
      state->symbols->pop_scope();

   /* Compound statements do not have r-values.
    */
   return NULL;
}


static const glsl_type *
process_array_type(YYLTYPE *loc, const glsl_type *base, ast_node *array_size,
		   struct _mesa_glsl_parse_state *state)
{
   unsigned length = 0;

   /* FINISHME: Reject delcarations of multidimensional arrays. */

   if (array_size != NULL) {
      exec_list dummy_instructions;
      ir_rvalue *const ir = array_size->hir(& dummy_instructions, state);
      YYLTYPE loc = array_size->get_location();

      if (ir != NULL) {
	 if (!ir->type->is_integer()) {
	    _mesa_glsl_error(& loc, state, "array size must be integer type");
	 } else if (!ir->type->is_scalar()) {
	    _mesa_glsl_error(& loc, state, "array size must be scalar type");
	 } else {
	    ir_constant *const size = ir->constant_expression_value();

	    if (size == NULL) {
	       _mesa_glsl_error(& loc, state, "array size must be a "
				"constant valued expression");
	    } else if (size->value.i[0] <= 0) {
	       _mesa_glsl_error(& loc, state, "array size must be > 0");
	    } else {
	       assert(size->type == ir->type);
	       length = size->value.u[0];

               /* If the array size is const (and we've verified that
                * it is) then no instructions should have been emitted
                * when we converted it to HIR.  If they were emitted,
                * then either the array size isn't const after all, or
                * we are emitting unnecessary instructions.
                */
               assert(dummy_instructions.is_empty());
	    }
	 }
      }
   } else if (state->es_shader) {
      /* Section 10.17 of the GLSL ES 1.00 specification states that unsized
       * array declarations have been removed from the language.
       */
      _mesa_glsl_error(loc, state, "unsized array declarations are not "
		       "allowed in GLSL ES 1.00.");
   }

   return glsl_type::get_array_instance(base, length);
}


const glsl_type *
ast_type_specifier::glsl_type(const char **name,
			      struct _mesa_glsl_parse_state *state) const
{
   const struct glsl_type *type;

   type = state->symbols->get_type(this->type_name);
   *name = this->type_name;

   if (this->is_array) {
      YYLTYPE loc = this->get_location();
      type = process_array_type(&loc, type, this->array_size, state);
   }

   return type;
}


static void
apply_type_qualifier_to_variable(const struct ast_type_qualifier *qual,
				 ir_variable *var,
				 struct _mesa_glsl_parse_state *state,
				 YYLTYPE *loc)
{
   if (qual->flags.q.invariant) {
      if (var->used) {
	 _mesa_glsl_error(loc, state,
			  "variable `%s' may not be redeclared "
			  "`invariant' after being used",
			  var->name);
      } else {
	 var->invariant = 1;
      }
   }

   if (qual->flags.q.constant || qual->flags.q.attribute
       || qual->flags.q.uniform
       || (qual->flags.q.varying && (state->target == fragment_shader)))
      var->read_only = 1;

   if (qual->flags.q.centroid)
      var->centroid = 1;

   if (qual->flags.q.attribute && state->target != vertex_shader) {
      var->type = glsl_type::error_type;
      _mesa_glsl_error(loc, state,
		       "`attribute' variables may not be declared in the "
		       "%s shader",
		       _mesa_glsl_shader_target_name(state->target));
   }

   /* From page 25 (page 31 of the PDF) of the GLSL 1.10 spec:
    *
    *     "The varying qualifier can be used only with the data types
    *     float, vec2, vec3, vec4, mat2, mat3, and mat4, or arrays of
    *     these."
    */
   if (qual->flags.q.varying) {
      const glsl_type *non_array_type;

      if (var->type && var->type->is_array())
	 non_array_type = var->type->fields.array;
      else
	 non_array_type = var->type;

      if (non_array_type && non_array_type->base_type != GLSL_TYPE_FLOAT) {
	 var->type = glsl_type::error_type;
	 _mesa_glsl_error(loc, state,
			  "varying variables must be of base type float");
      }
   }

   /* If there is no qualifier that changes the mode of the variable, leave
    * the setting alone.
    */
   if (qual->flags.q.in && qual->flags.q.out)
      var->mode = ir_var_inout;
   else if (qual->flags.q.attribute || qual->flags.q.in
	    || (qual->flags.q.varying && (state->target == fragment_shader)))
      var->mode = ir_var_in;
   else if (qual->flags.q.out
	    || (qual->flags.q.varying && (state->target == vertex_shader)))
      var->mode = ir_var_out;
   else if (qual->flags.q.uniform)
      var->mode = ir_var_uniform;

   if (state->all_invariant && (state->current_function == NULL)) {
      switch (state->target) {
      case vertex_shader:
	 if (var->mode == ir_var_out)
	    var->invariant = true;
	 break;
      case geometry_shader:
	 if ((var->mode == ir_var_in) || (var->mode == ir_var_out))
	    var->invariant = true;
	 break;
      case fragment_shader:
	 if (var->mode == ir_var_in)
	    var->invariant = true;
	 break;
      }
   }

   if (qual->flags.q.flat)
      var->interpolation = ir_var_flat;
   else if (qual->flags.q.noperspective)
      var->interpolation = ir_var_noperspective;
   else
      var->interpolation = ir_var_smooth;

   var->pixel_center_integer = qual->flags.q.pixel_center_integer;
   var->origin_upper_left = qual->flags.q.origin_upper_left;
   if ((qual->flags.q.origin_upper_left || qual->flags.q.pixel_center_integer)
       && (strcmp(var->name, "gl_FragCoord") != 0)) {
      const char *const qual_string = (qual->flags.q.origin_upper_left)
	 ? "origin_upper_left" : "pixel_center_integer";

      _mesa_glsl_error(loc, state,
		       "layout qualifier `%s' can only be applied to "
		       "fragment shader input `gl_FragCoord'",
		       qual_string);
   }

   if (qual->flags.q.explicit_location) {
      const bool global_scope = (state->current_function == NULL);
      bool fail = false;
      const char *string = "";

      /* In the vertex shader only shader inputs can be given explicit
       * locations.
       *
       * In the fragment shader only shader outputs can be given explicit
       * locations.
       */
      switch (state->target) {
      case vertex_shader:
	 if (!global_scope || (var->mode != ir_var_in)) {
	    fail = true;
	    string = "input";
	 }
	 break;

      case geometry_shader:
	 _mesa_glsl_error(loc, state,
			  "geometry shader variables cannot be given "
			  "explicit locations\n");
	 break;

      case fragment_shader:
	 if (!global_scope || (var->mode != ir_var_out)) {
	    fail = true;
	    string = "output";
	 }
	 break;
      };

      if (fail) {
	 _mesa_glsl_error(loc, state,
			  "only %s shader %s variables can be given an "
			  "explicit location\n",
			  _mesa_glsl_shader_target_name(state->target),
			  string);
      } else {
	 var->explicit_location = true;

	 /* This bit of silliness is needed because invalid explicit locations
	  * are supposed to be flagged during linking.  Small negative values
	  * biased by VERT_ATTRIB_GENERIC0 or FRAG_RESULT_DATA0 could alias
	  * built-in values (e.g., -16+VERT_ATTRIB_GENERIC0 = VERT_ATTRIB_POS).
	  * The linker needs to be able to differentiate these cases.  This
	  * ensures that negative values stay negative.
	  */
	 if (qual->location >= 0) {
	    var->location = (state->target == vertex_shader)
	       ? (qual->location + VERT_ATTRIB_GENERIC0)
	       : (qual->location + FRAG_RESULT_DATA0);
	 } else {
	    var->location = qual->location;
	 }
      }
   }

   /* Does the declaration use the 'layout' keyword?
    */
   const bool uses_layout = qual->flags.q.pixel_center_integer
      || qual->flags.q.origin_upper_left
      || qual->flags.q.explicit_location;

   /* Does the declaration use the deprecated 'attribute' or 'varying'
    * keywords?
    */
   const bool uses_deprecated_qualifier = qual->flags.q.attribute
      || qual->flags.q.varying;

   /* Is the 'layout' keyword used with parameters that allow relaxed checking.
    * Many implementations of GL_ARB_fragment_coord_conventions_enable and some
    * implementations (only Mesa?) GL_ARB_explicit_attrib_location_enable
    * allowed the layout qualifier to be used with 'varying' and 'attribute'.
    * These extensions and all following extensions that add the 'layout'
    * keyword have been modified to require the use of 'in' or 'out'.
    *
    * The following extension do not allow the deprecated keywords:
    *
    *    GL_AMD_conservative_depth
    *    GL_ARB_gpu_shader5
    *    GL_ARB_separate_shader_objects
    *    GL_ARB_tesselation_shader
    *    GL_ARB_transform_feedback3
    *    GL_ARB_uniform_buffer_object
    *
    * It is unknown whether GL_EXT_shader_image_load_store or GL_NV_gpu_shader5
    * allow layout with the deprecated keywords.
    */
   const bool relaxed_layout_qualifier_checking =
      state->ARB_fragment_coord_conventions_enable;

   if (uses_layout && uses_deprecated_qualifier) {
      if (relaxed_layout_qualifier_checking) {
	 _mesa_glsl_warning(loc, state,
			    "`layout' qualifier may not be used with "
			    "`attribute' or `varying'");
      } else {
	 _mesa_glsl_error(loc, state,
			  "`layout' qualifier may not be used with "
			  "`attribute' or `varying'");
      }
   }

   /* Layout qualifiers for gl_FragDepth, which are enabled by extension
    * AMD_conservative_depth.
    */
   int depth_layout_count = qual->flags.q.depth_any
      + qual->flags.q.depth_greater
      + qual->flags.q.depth_less
      + qual->flags.q.depth_unchanged;
   if (depth_layout_count > 0
       && !state->AMD_conservative_depth_enable) {
       _mesa_glsl_error(loc, state,
                        "extension GL_AMD_conservative_depth must be enabled "
			"to use depth layout qualifiers");
   } else if (depth_layout_count > 0
              && strcmp(var->name, "gl_FragDepth") != 0) {
       _mesa_glsl_error(loc, state,
                        "depth layout qualifiers can be applied only to "
                        "gl_FragDepth");
   } else if (depth_layout_count > 1
              && strcmp(var->name, "gl_FragDepth") == 0) {
      _mesa_glsl_error(loc, state,
                       "at most one depth layout qualifier can be applied to "
                       "gl_FragDepth");
   }
   if (qual->flags.q.depth_any)
      var->depth_layout = ir_depth_layout_any;
   else if (qual->flags.q.depth_greater)
      var->depth_layout = ir_depth_layout_greater;
   else if (qual->flags.q.depth_less)
      var->depth_layout = ir_depth_layout_less;
   else if (qual->flags.q.depth_unchanged)
       var->depth_layout = ir_depth_layout_unchanged;
   else
       var->depth_layout = ir_depth_layout_none;
}

/**
 * Get the variable that is being redeclared by this declaration
 *
 * Semantic checks to verify the validity of the redeclaration are also
 * performed.  If semantic checks fail, compilation error will be emitted via
 * \c _mesa_glsl_error, but a non-\c NULL pointer will still be returned.
 *
 * \returns
 * A pointer to an existing variable in the current scope if the declaration
 * is a redeclaration, \c NULL otherwise.
 */
ir_variable *
get_variable_being_redeclared(ir_variable *var, ast_declaration *decl,
			      struct _mesa_glsl_parse_state *state)
{
   /* Check if this declaration is actually a re-declaration, either to
    * resize an array or add qualifiers to an existing variable.
    *
    * This is allowed for variables in the current scope, or when at
    * global scope (for built-ins in the implicit outer scope).
    */
   ir_variable *earlier = state->symbols->get_variable(decl->identifier);
   if (earlier == NULL ||
       (state->current_function != NULL &&
	!state->symbols->name_declared_this_scope(decl->identifier))) {
      return NULL;
   }


   YYLTYPE loc = decl->get_location();

   /* From page 24 (page 30 of the PDF) of the GLSL 1.50 spec,
    *
    * "It is legal to declare an array without a size and then
    *  later re-declare the same name as an array of the same
    *  type and specify a size."
    */
   if ((earlier->type->array_size() == 0)
       && var->type->is_array()
       && (var->type->element_type() == earlier->type->element_type())) {
      /* FINISHME: This doesn't match the qualifiers on the two
       * FINISHME: declarations.  It's not 100% clear whether this is
       * FINISHME: required or not.
       */

      const unsigned size = unsigned(var->type->array_size());
      check_builtin_array_max_size(var->name, size, loc, state);
      if ((size > 0) && (size <= earlier->max_array_access)) {
	 _mesa_glsl_error(& loc, state, "array size must be > %u due to "
			  "previous access",
			  earlier->max_array_access);
      }

      earlier->type = var->type;
      delete var;
      var = NULL;
   } else if (state->ARB_fragment_coord_conventions_enable
	      && strcmp(var->name, "gl_FragCoord") == 0
	      && earlier->type == var->type
	      && earlier->mode == var->mode) {
      /* Allow redeclaration of gl_FragCoord for ARB_fcc layout
       * qualifiers.
       */
      earlier->origin_upper_left = var->origin_upper_left;
      earlier->pixel_center_integer = var->pixel_center_integer;

      /* According to section 4.3.7 of the GLSL 1.30 spec,
       * the following built-in varaibles can be redeclared with an
       * interpolation qualifier:
       *    * gl_FrontColor
       *    * gl_BackColor
       *    * gl_FrontSecondaryColor
       *    * gl_BackSecondaryColor
       *    * gl_Color
       *    * gl_SecondaryColor
       */
   } else if (state->language_version >= 130
	      && (strcmp(var->name, "gl_FrontColor") == 0
		  || strcmp(var->name, "gl_BackColor") == 0
		  || strcmp(var->name, "gl_FrontSecondaryColor") == 0
		  || strcmp(var->name, "gl_BackSecondaryColor") == 0
		  || strcmp(var->name, "gl_Color") == 0
		  || strcmp(var->name, "gl_SecondaryColor") == 0)
	      && earlier->type == var->type
	      && earlier->mode == var->mode) {
      earlier->interpolation = var->interpolation;

      /* Layout qualifiers for gl_FragDepth. */
   } else if (state->AMD_conservative_depth_enable
	      && strcmp(var->name, "gl_FragDepth") == 0
	      && earlier->type == var->type
	      && earlier->mode == var->mode) {

      /** From the AMD_conservative_depth spec:
       *     Within any shader, the first redeclarations of gl_FragDepth
       *     must appear before any use of gl_FragDepth.
       */
      if (earlier->used) {
	 _mesa_glsl_error(&loc, state,
			  "the first redeclaration of gl_FragDepth "
			  "must appear before any use of gl_FragDepth");
      }

      /* Prevent inconsistent redeclaration of depth layout qualifier. */
      if (earlier->depth_layout != ir_depth_layout_none
	  && earlier->depth_layout != var->depth_layout) {
	 _mesa_glsl_error(&loc, state,
			  "gl_FragDepth: depth layout is declared here "
			  "as '%s, but it was previously declared as "
			  "'%s'",
			  depth_layout_string(var->depth_layout),
			  depth_layout_string(earlier->depth_layout));
      }

      earlier->depth_layout = var->depth_layout;

   } else {
      _mesa_glsl_error(&loc, state, "`%s' redeclared", decl->identifier);
   }

   return earlier;
}

/**
 * Generate the IR for an initializer in a variable declaration
 */
ir_rvalue *
process_initializer(ir_variable *var, ast_declaration *decl,
		    ast_fully_specified_type *type,
		    exec_list *initializer_instructions,
		    struct _mesa_glsl_parse_state *state)
{
   ir_rvalue *result = NULL;

   YYLTYPE initializer_loc = decl->initializer->get_location();

   /* From page 24 (page 30 of the PDF) of the GLSL 1.10 spec:
    *
    *    "All uniform variables are read-only and are initialized either
    *    directly by an application via API commands, or indirectly by
    *    OpenGL."
    */
   if ((state->language_version <= 110)
       && (var->mode == ir_var_uniform)) {
      _mesa_glsl_error(& initializer_loc, state,
		       "cannot initialize uniforms in GLSL 1.10");
   }

   if (var->type->is_sampler()) {
      _mesa_glsl_error(& initializer_loc, state,
		       "cannot initialize samplers");
   }

   if ((var->mode == ir_var_in) && (state->current_function == NULL)) {
      _mesa_glsl_error(& initializer_loc, state,
		       "cannot initialize %s shader input / %s",
		       _mesa_glsl_shader_target_name(state->target),
		       (state->target == vertex_shader)
		       ? "attribute" : "varying");
   }

   ir_dereference *const lhs = new(state) ir_dereference_variable(var);
   ir_rvalue *rhs = decl->initializer->hir(initializer_instructions,
					   state);

   /* Calculate the constant value if this is a const or uniform
    * declaration.
    */
   if (type->qualifier.flags.q.constant
       || type->qualifier.flags.q.uniform) {
      ir_rvalue *new_rhs = validate_assignment(state, var->type, rhs, true);
      if (new_rhs != NULL) {
	 rhs = new_rhs;

	 ir_constant *constant_value = rhs->constant_expression_value();
	 if (!constant_value) {
	    _mesa_glsl_error(& initializer_loc, state,
			     "initializer of %s variable `%s' must be a "
			     "constant expression",
			     (type->qualifier.flags.q.constant)
			     ? "const" : "uniform",
			     decl->identifier);
	    if (var->type->is_numeric()) {
	       /* Reduce cascading errors. */
	       var->constant_value = ir_constant::zero(state, var->type);
	    }
	 } else {
	    rhs = constant_value;
	    var->constant_value = constant_value;
	 }
      } else {
	 _mesa_glsl_error(&initializer_loc, state,
			  "initializer of type %s cannot be assigned to "
			  "variable of type %s",
			  rhs->type->name, var->type->name);
	 if (var->type->is_numeric()) {
	    /* Reduce cascading errors. */
	    var->constant_value = ir_constant::zero(state, var->type);
	 }
      }
   }

   if (rhs && !rhs->type->is_error()) {
      bool temp = var->read_only;
      if (type->qualifier.flags.q.constant)
	 var->read_only = false;

      /* Never emit code to initialize a uniform.
       */
      const glsl_type *initializer_type;
      if (!type->qualifier.flags.q.uniform) {
	 result = do_assignment(initializer_instructions, state,
				lhs, rhs, true,
				type->get_location());
	 initializer_type = result->type;
      } else
	 initializer_type = rhs->type;

      /* If the declared variable is an unsized array, it must inherrit
       * its full type from the initializer.  A declaration such as
       *
       *     uniform float a[] = float[](1.0, 2.0, 3.0, 3.0);
       *
       * becomes
       *
       *     uniform float a[4] = float[](1.0, 2.0, 3.0, 3.0);
       *
       * The assignment generated in the if-statement (below) will also
       * automatically handle this case for non-uniforms.
       *
       * If the declared variable is not an array, the types must
       * already match exactly.  As a result, the type assignment
       * here can be done unconditionally.  For non-uniforms the call
       * to do_assignment can change the type of the initializer (via
       * the implicit conversion rules).  For uniforms the initializer
       * must be a constant expression, and the type of that expression
       * was validated above.
       */
      var->type = initializer_type;

      var->read_only = temp;
   }

   return result;
}

ir_rvalue *
ast_declarator_list::hir(exec_list *instructions,
			 struct _mesa_glsl_parse_state *state)
{
   void *ctx = state;
   const struct glsl_type *decl_type;
   const char *type_name = NULL;
   ir_rvalue *result = NULL;
   YYLTYPE loc = this->get_location();

   /* From page 46 (page 52 of the PDF) of the GLSL 1.50 spec:
    *
    *     "To ensure that a particular output variable is invariant, it is
    *     necessary to use the invariant qualifier. It can either be used to
    *     qualify a previously declared variable as being invariant
    *
    *         invariant gl_Position; // make existing gl_Position be invariant"
    *
    * In these cases the parser will set the 'invariant' flag in the declarator
    * list, and the type will be NULL.
    */
   if (this->invariant) {
      assert(this->type == NULL);

      if (state->current_function != NULL) {
	 _mesa_glsl_error(& loc, state,
			  "All uses of `invariant' keyword must be at global "
			  "scope\n");
      }

      foreach_list_typed (ast_declaration, decl, link, &this->declarations) {
	 assert(!decl->is_array);
	 assert(decl->array_size == NULL);
	 assert(decl->initializer == NULL);

	 ir_variable *const earlier =
	    state->symbols->get_variable(decl->identifier);
	 if (earlier == NULL) {
	    _mesa_glsl_error(& loc, state,
			     "Undeclared variable `%s' cannot be marked "
			     "invariant\n", decl->identifier);
	 } else if ((state->target == vertex_shader)
	       && (earlier->mode != ir_var_out)) {
	    _mesa_glsl_error(& loc, state,
			     "`%s' cannot be marked invariant, vertex shader "
			     "outputs only\n", decl->identifier);
	 } else if ((state->target == fragment_shader)
	       && (earlier->mode != ir_var_in)) {
	    _mesa_glsl_error(& loc, state,
			     "`%s' cannot be marked invariant, fragment shader "
			     "inputs only\n", decl->identifier);
	 } else if (earlier->used) {
	    _mesa_glsl_error(& loc, state,
			     "variable `%s' may not be redeclared "
			     "`invariant' after being used",
			     earlier->name);
	 } else {
	    earlier->invariant = true;
	 }
      }

      /* Invariant redeclarations do not have r-values.
       */
      return NULL;
   }

   assert(this->type != NULL);
   assert(!this->invariant);

   /* The type specifier may contain a structure definition.  Process that
    * before any of the variable declarations.
    */
   (void) this->type->specifier->hir(instructions, state);

   decl_type = this->type->specifier->glsl_type(& type_name, state);
   if (this->declarations.is_empty()) {
      if (decl_type != NULL) {
	 /* Warn if this empty declaration is not for declaring a structure.
	  */
	 if (this->type->specifier->structure == NULL) {
	    _mesa_glsl_warning(&loc, state, "empty declaration");
	 }
      } else {
	    _mesa_glsl_error(& loc, state, "incomplete declaration");
      }
   }

   foreach_list_typed (ast_declaration, decl, link, &this->declarations) {
      const struct glsl_type *var_type;
      ir_variable *var;

      /* FINISHME: Emit a warning if a variable declaration shadows a
       * FINISHME: declaration at a higher scope.
       */

      if ((decl_type == NULL) || decl_type->is_void()) {
	 if (type_name != NULL) {
	    _mesa_glsl_error(& loc, state,
			     "invalid type `%s' in declaration of `%s'",
			     type_name, decl->identifier);
	 } else {
	    _mesa_glsl_error(& loc, state,
			     "invalid type in declaration of `%s'",
			     decl->identifier);
	 }
	 continue;
      }

      if (decl->is_array) {
	 var_type = process_array_type(&loc, decl_type, decl->array_size,
				       state);
      } else {
	 var_type = decl_type;
      }

      var = new(ctx) ir_variable(var_type, decl->identifier, ir_var_auto);

      /* From page 22 (page 28 of the PDF) of the GLSL 1.10 specification;
       *
       *     "Global variables can only use the qualifiers const,
       *     attribute, uni form, or varying. Only one may be
       *     specified.
       *
       *     Local variables can only use the qualifier const."
       *
       * This is relaxed in GLSL 1.30.  It is also relaxed by any extension
       * that adds the 'layout' keyword.
       */
      if ((state->language_version < 130)
	  && !state->ARB_explicit_attrib_location_enable
	  && !state->ARB_fragment_coord_conventions_enable) {
	 if (this->type->qualifier.flags.q.out) {
	    _mesa_glsl_error(& loc, state,
			     "`out' qualifier in declaration of `%s' "
			     "only valid for function parameters in %s.",
			     decl->identifier, state->version_string);
	 }
	 if (this->type->qualifier.flags.q.in) {
	    _mesa_glsl_error(& loc, state,
			     "`in' qualifier in declaration of `%s' "
			     "only valid for function parameters in %s.",
			     decl->identifier, state->version_string);
	 }
	 /* FINISHME: Test for other invalid qualifiers. */
      }

      apply_type_qualifier_to_variable(& this->type->qualifier, var, state,
				       & loc);

      if (this->type->qualifier.flags.q.invariant) {
	 if ((state->target == vertex_shader) && !(var->mode == ir_var_out ||
						   var->mode == ir_var_inout)) {
	    /* FINISHME: Note that this doesn't work for invariant on
	     * a function signature outval
	     */
	    _mesa_glsl_error(& loc, state,
			     "`%s' cannot be marked invariant, vertex shader "
			     "outputs only\n", var->name);
	 } else if ((state->target == fragment_shader) &&
		    !(var->mode == ir_var_in || var->mode == ir_var_inout)) {
	    /* FINISHME: Note that this doesn't work for invariant on
	     * a function signature inval
	     */
	    _mesa_glsl_error(& loc, state,
			     "`%s' cannot be marked invariant, fragment shader "
			     "inputs only\n", var->name);
	 }
      }

      if (state->current_function != NULL) {
	 const char *mode = NULL;
	 const char *extra = "";

	 /* There is no need to check for 'inout' here because the parser will
	  * only allow that in function parameter lists.
	  */
	 if (this->type->qualifier.flags.q.attribute) {
	    mode = "attribute";
	 } else if (this->type->qualifier.flags.q.uniform) {
	    mode = "uniform";
	 } else if (this->type->qualifier.flags.q.varying) {
	    mode = "varying";
	 } else if (this->type->qualifier.flags.q.in) {
	    mode = "in";
	    extra = " or in function parameter list";
	 } else if (this->type->qualifier.flags.q.out) {
	    mode = "out";
	    extra = " or in function parameter list";
	 }

	 if (mode) {
	    _mesa_glsl_error(& loc, state,
			     "%s variable `%s' must be declared at "
			     "global scope%s",
			     mode, var->name, extra);
	 }
      } else if (var->mode == ir_var_in) {
         var->read_only = true;

	 if (state->target == vertex_shader) {
	    bool error_emitted = false;

	    /* From page 31 (page 37 of the PDF) of the GLSL 1.50 spec:
	     *
	     *    "Vertex shader inputs can only be float, floating-point
	     *    vectors, matrices, signed and unsigned integers and integer
	     *    vectors. Vertex shader inputs can also form arrays of these
	     *    types, but not structures."
	     *
	     * From page 31 (page 27 of the PDF) of the GLSL 1.30 spec:
	     *
	     *    "Vertex shader inputs can only be float, floating-point
	     *    vectors, matrices, signed and unsigned integers and integer
	     *    vectors. They cannot be arrays or structures."
	     *
	     * From page 23 (page 29 of the PDF) of the GLSL 1.20 spec:
	     *
	     *    "The attribute qualifier can be used only with float,
	     *    floating-point vectors, and matrices. Attribute variables
	     *    cannot be declared as arrays or structures."
	     */
	    const glsl_type *check_type = var->type->is_array()
	       ? var->type->fields.array : var->type;

	    switch (check_type->base_type) {
	    case GLSL_TYPE_FLOAT:
	       break;
	    case GLSL_TYPE_UINT:
	    case GLSL_TYPE_INT:
	       if (state->language_version > 120)
		  break;
	       /* FALLTHROUGH */
	    default:
	       _mesa_glsl_error(& loc, state,
				"vertex shader input / attribute cannot have "
				"type %s`%s'",
				var->type->is_array() ? "array of " : "",
				check_type->name);
	       error_emitted = true;
	    }

	    if (!error_emitted && (state->language_version <= 130)
		&& var->type->is_array()) {
	       _mesa_glsl_error(& loc, state,
				"vertex shader input / attribute cannot have "
				"array type");
	       error_emitted = true;
	    }
	 }
      }

      /* Integer vertex outputs must be qualified with 'flat'.
       *
       * From section 4.3.6 of the GLSL 1.30 spec:
       *    "If a vertex output is a signed or unsigned integer or integer
       *    vector, then it must be qualified with the interpolation qualifier
       *    flat."
       */
      if (state->language_version >= 130
          && state->target == vertex_shader
          && state->current_function == NULL
          && var->type->is_integer()
          && var->mode == ir_var_out
          && var->interpolation != ir_var_flat) {

         _mesa_glsl_error(&loc, state, "If a vertex output is an integer, "
                          "then it must be qualified with 'flat'");
      }


      /* Interpolation qualifiers cannot be applied to 'centroid' and
       * 'centroid varying'.
       *
       * From page 29 (page 35 of the PDF) of the GLSL 1.30 spec:
       *    "interpolation qualifiers may only precede the qualifiers in,
       *    centroid in, out, or centroid out in a declaration. They do not apply
       *    to the deprecated storage qualifiers varying or centroid varying."
       */
      if (state->language_version >= 130
          && this->type->qualifier.has_interpolation()
          && this->type->qualifier.flags.q.varying) {

         const char *i = this->type->qualifier.interpolation_string();
         assert(i != NULL);
         const char *s;
         if (this->type->qualifier.flags.q.centroid)
            s = "centroid varying";
         else
            s = "varying";

         _mesa_glsl_error(&loc, state,
                          "qualifier '%s' cannot be applied to the "
                          "deprecated storage qualifier '%s'", i, s);
      }


      /* Interpolation qualifiers can only apply to vertex shader outputs and
       * fragment shader inputs.
       *
       * From page 29 (page 35 of the PDF) of the GLSL 1.30 spec:
       *    "Outputs from a vertex shader (out) and inputs to a fragment
       *    shader (in) can be further qualified with one or more of these
       *    interpolation qualifiers"
       */
      if (state->language_version >= 130
          && this->type->qualifier.has_interpolation()) {

         const char *i = this->type->qualifier.interpolation_string();
         assert(i != NULL);

         switch (state->target) {
         case vertex_shader:
            if (this->type->qualifier.flags.q.in) {
               _mesa_glsl_error(&loc, state,
                                "qualifier '%s' cannot be applied to vertex "
                                "shader inputs", i);
            }
            break;
         case fragment_shader:
            if (this->type->qualifier.flags.q.out) {
               _mesa_glsl_error(&loc, state,
                                "qualifier '%s' cannot be applied to fragment "
                                "shader outputs", i);
            }
            break;
         default:
            assert(0);
         }
      }


      /* From section 4.3.4 of the GLSL 1.30 spec:
       *    "It is an error to use centroid in in a vertex shader."
       */
      if (state->language_version >= 130
          && this->type->qualifier.flags.q.centroid
          && this->type->qualifier.flags.q.in
          && state->target == vertex_shader) {

         _mesa_glsl_error(&loc, state,
                          "'centroid in' cannot be used in a vertex shader");
      }


      /* Precision qualifiers exists only in GLSL versions 1.00 and >= 1.30.
       */
      if (this->type->specifier->precision != ast_precision_none
          && state->language_version != 100
          && state->language_version < 130) {

         _mesa_glsl_error(&loc, state,
                          "precision qualifiers are supported only in GLSL ES "
                          "1.00, and GLSL 1.30 and later");
      }


      /* Precision qualifiers only apply to floating point and integer types.
       *
       * From section 4.5.2 of the GLSL 1.30 spec:
       *    "Any floating point or any integer declaration can have the type
       *    preceded by one of these precision qualifiers [...] Literal
       *    constants do not have precision qualifiers. Neither do Boolean
       *    variables.
       *
       * In GLSL ES, sampler types are also allowed.
       *
       * From page 87 of the GLSL ES spec:
       *    "RESOLUTION: Allow sampler types to take a precision qualifier."
       */
      if (this->type->specifier->precision != ast_precision_none
          && !var->type->is_float()
          && !var->type->is_integer()
          && !(var->type->is_sampler() && state->es_shader)
          && !(var->type->is_array()
               && (var->type->fields.array->is_float()
                   || var->type->fields.array->is_integer()))) {

         _mesa_glsl_error(&loc, state,
                          "precision qualifiers apply only to floating point"
                          "%s types", state->es_shader ? ", integer, and sampler"
						       : "and integer");
      }

      /* From page 17 (page 23 of the PDF) of the GLSL 1.20 spec:
       *
       *    "[Sampler types] can only be declared as function
       *    parameters or uniform variables (see Section 4.3.5
       *    "Uniform")".
       */
      if (var_type->contains_sampler() &&
          !this->type->qualifier.flags.q.uniform) {
         _mesa_glsl_error(&loc, state, "samplers must be declared uniform");
      }

      /* Process the initializer and add its instructions to a temporary
       * list.  This list will be added to the instruction stream (below) after
       * the declaration is added.  This is done because in some cases (such as
       * redeclarations) the declaration may not actually be added to the
       * instruction stream.
       */
      exec_list initializer_instructions;
      ir_variable *earlier = get_variable_being_redeclared(var, decl, state);

      if (decl->initializer != NULL) {
	 result = process_initializer((earlier == NULL) ? var : earlier,
				      decl, this->type,
				      &initializer_instructions, state);
      }

      /* From page 23 (page 29 of the PDF) of the GLSL 1.10 spec:
       *
       *     "It is an error to write to a const variable outside of
       *      its declaration, so they must be initialized when
       *      declared."
       */
      if (this->type->qualifier.flags.q.constant && decl->initializer == NULL) {
	 _mesa_glsl_error(& loc, state,
			  "const declaration of `%s' must be initialized",
			  decl->identifier);
      }

      /* If the declaration is not a redeclaration, there are a few additional
       * semantic checks that must be applied.  In addition, variable that was
       * created for the declaration should be added to the IR stream.
       */
      if (earlier == NULL) {
	 /* From page 15 (page 21 of the PDF) of the GLSL 1.10 spec,
	  *
	  *   "Identifiers starting with "gl_" are reserved for use by
	  *   OpenGL, and may not be declared in a shader as either a
	  *   variable or a function."
	  */
	 if (strncmp(decl->identifier, "gl_", 3) == 0)
	    _mesa_glsl_error(& loc, state,
			     "identifier `%s' uses reserved `gl_' prefix",
			     decl->identifier);

	 /* Add the variable to the symbol table.  Note that the initializer's
	  * IR was already processed earlier (though it hasn't been emitted
	  * yet), without the variable in scope.
	  *
	  * This differs from most C-like languages, but it follows the GLSL
	  * specification.  From page 28 (page 34 of the PDF) of the GLSL 1.50
	  * spec:
	  *
	  *     "Within a declaration, the scope of a name starts immediately
	  *     after the initializer if present or immediately after the name
	  *     being declared if not."
	  */
	 if (!state->symbols->add_variable(var)) {
	    YYLTYPE loc = this->get_location();
	    _mesa_glsl_error(&loc, state, "name `%s' already taken in the "
			     "current scope", decl->identifier);
	    continue;
	 }

	 /* Push the variable declaration to the top.  It means that all the
	  * variable declarations will appear in a funny last-to-first order,
	  * but otherwise we run into trouble if a function is prototyped, a
	  * global var is decled, then the function is defined with usage of
	  * the global var.  See glslparsertest's CorrectModule.frag.
	  */
	 instructions->push_head(var);
      }

      instructions->append_list(&initializer_instructions);
   }


   /* Generally, variable declarations do not have r-values.  However,
    * one is used for the declaration in
    *
    * while (bool b = some_condition()) {
    *   ...
    * }
    *
    * so we return the rvalue from the last seen declaration here.
    */
   return result;
}


ir_rvalue *
ast_parameter_declarator::hir(exec_list *instructions,
			      struct _mesa_glsl_parse_state *state)
{
   void *ctx = state;
   const struct glsl_type *type;
   const char *name = NULL;
   YYLTYPE loc = this->get_location();

   type = this->type->specifier->glsl_type(& name, state);

   if (type == NULL) {
      if (name != NULL) {
	 _mesa_glsl_error(& loc, state,
			  "invalid type `%s' in declaration of `%s'",
			  name, this->identifier);
      } else {
	 _mesa_glsl_error(& loc, state,
			  "invalid type in declaration of `%s'",
			  this->identifier);
      }

      type = glsl_type::error_type;
   }

   /* From page 62 (page 68 of the PDF) of the GLSL 1.50 spec:
    *
    *    "Functions that accept no input arguments need not use void in the
    *    argument list because prototypes (or definitions) are required and
    *    therefore there is no ambiguity when an empty argument list "( )" is
    *    declared. The idiom "(void)" as a parameter list is provided for
    *    convenience."
    *
    * Placing this check here prevents a void parameter being set up
    * for a function, which avoids tripping up checks for main taking
    * parameters and lookups of an unnamed symbol.
    */
   if (type->is_void()) {
      if (this->identifier != NULL)
	 _mesa_glsl_error(& loc, state,
			  "named parameter cannot have type `void'");

      is_void = true;
      return NULL;
   }

   if (formal_parameter && (this->identifier == NULL)) {
      _mesa_glsl_error(& loc, state, "formal parameter lacks a name");
      return NULL;
   }

   /* This only handles "vec4 foo[..]".  The earlier specifier->glsl_type(...)
    * call already handled the "vec4[..] foo" case.
    */
   if (this->is_array) {
      type = process_array_type(&loc, type, this->array_size, state);
   }

   if (type->array_size() == 0) {
      _mesa_glsl_error(&loc, state, "arrays passed as parameters must have "
		       "a declared size.");
      type = glsl_type::error_type;
   }

   is_void = false;
   ir_variable *var = new(ctx) ir_variable(type, this->identifier, ir_var_in);

   /* Apply any specified qualifiers to the parameter declaration.  Note that
    * for function parameters the default mode is 'in'.
    */
   apply_type_qualifier_to_variable(& this->type->qualifier, var, state, & loc);

   /* From page 17 (page 23 of the PDF) of the GLSL 1.20 spec:
    *
    *    "Samplers cannot be treated as l-values; hence cannot be used
    *    as out or inout function parameters, nor can they be assigned
    *    into."
    */
   if ((var->mode == ir_var_inout || var->mode == ir_var_out)
       && type->contains_sampler()) {
      _mesa_glsl_error(&loc, state, "out and inout parameters cannot contain samplers");
      type = glsl_type::error_type;
   }

   /* From page 39 (page 45 of the PDF) of the GLSL 1.10 spec:
    *
    *    "When calling a function, expressions that do not evaluate to
    *     l-values cannot be passed to parameters declared as out or inout."
    *
    * From page 32 (page 38 of the PDF) of the GLSL 1.10 spec:
    *
    *    "Other binary or unary expressions, non-dereferenced arrays,
    *     function names, swizzles with repeated fields, and constants
    *     cannot be l-values."
    *
    * So for GLSL 1.10, passing an array as an out or inout parameter is not
    * allowed.  This restriction is removed in GLSL 1.20, and in GLSL ES.
    */
   if ((var->mode == ir_var_inout || var->mode == ir_var_out)
       && type->is_array() && state->language_version == 110) {
      _mesa_glsl_error(&loc, state, "Arrays cannot be out or inout parameters in GLSL 1.10");
      type = glsl_type::error_type;
   }

   instructions->push_tail(var);

   /* Parameter declarations do not have r-values.
    */
   return NULL;
}


void
ast_parameter_declarator::parameters_to_hir(exec_list *ast_parameters,
					    bool formal,
					    exec_list *ir_parameters,
					    _mesa_glsl_parse_state *state)
{
   ast_parameter_declarator *void_param = NULL;
   unsigned count = 0;

   foreach_list_typed (ast_parameter_declarator, param, link, ast_parameters) {
      param->formal_parameter = formal;
      param->hir(ir_parameters, state);

      if (param->is_void)
	 void_param = param;

      count++;
   }

   if ((void_param != NULL) && (count > 1)) {
      YYLTYPE loc = void_param->get_location();

      _mesa_glsl_error(& loc, state,
		       "`void' parameter must be only parameter");
   }
}


void
emit_function(_mesa_glsl_parse_state *state, ir_function *f)
{
   /* IR invariants disallow function declarations or definitions
    * nested within other function definitions.  But there is no
    * requirement about the relative order of function declarations
    * and definitions with respect to one another.  So simply insert
    * the new ir_function block at the end of the toplevel instruction
    * list.
    */
   state->toplevel_ir->push_tail(f);
}


ir_rvalue *
ast_function::hir(exec_list *instructions,
		  struct _mesa_glsl_parse_state *state)
{
   void *ctx = state;
   ir_function *f = NULL;
   ir_function_signature *sig = NULL;
   exec_list hir_parameters;

   const char *const name = identifier;

   /* From page 21 (page 27 of the PDF) of the GLSL 1.20 spec,
    *
    *   "Function declarations (prototypes) cannot occur inside of functions;
    *   they must be at global scope, or for the built-in functions, outside
    *   the global scope."
    *
    * From page 27 (page 33 of the PDF) of the GLSL ES 1.00.16 spec,
    *
    *   "User defined functions may only be defined within the global scope."
    *
    * Note that this language does not appear in GLSL 1.10.
    */
   if ((state->current_function != NULL) && (state->language_version != 110)) {
      YYLTYPE loc = this->get_location();
      _mesa_glsl_error(&loc, state,
		       "declaration of function `%s' not allowed within "
		       "function body", name);
   }

   /* From page 15 (page 21 of the PDF) of the GLSL 1.10 spec,
    *
    *   "Identifiers starting with "gl_" are reserved for use by
    *   OpenGL, and may not be declared in a shader as either a
    *   variable or a function."
    */
   if (strncmp(name, "gl_", 3) == 0) {
      YYLTYPE loc = this->get_location();
      _mesa_glsl_error(&loc, state,
		       "identifier `%s' uses reserved `gl_' prefix", name);
   }

   /* Convert the list of function parameters to HIR now so that they can be
    * used below to compare this function's signature with previously seen
    * signatures for functions with the same name.
    */
   ast_parameter_declarator::parameters_to_hir(& this->parameters,
					       is_definition,
					       & hir_parameters, state);

   const char *return_type_name;
   const glsl_type *return_type =
      this->return_type->specifier->glsl_type(& return_type_name, state);

   if (!return_type) {
      YYLTYPE loc = this->get_location();
      _mesa_glsl_error(&loc, state,
		       "function `%s' has undeclared return type `%s'",
		       name, return_type_name);
      return_type = glsl_type::error_type;
   }

   /* From page 56 (page 62 of the PDF) of the GLSL 1.30 spec:
    * "No qualifier is allowed on the return type of a function."
    */
   if (this->return_type->has_qualifiers()) {
      YYLTYPE loc = this->get_location();
      _mesa_glsl_error(& loc, state,
		       "function `%s' return type has qualifiers", name);
   }

   /* From page 17 (page 23 of the PDF) of the GLSL 1.20 spec:
    *
    *    "[Sampler types] can only be declared as function parameters
    *    or uniform variables (see Section 4.3.5 "Uniform")".
    */
   if (return_type->contains_sampler()) {
      YYLTYPE loc = this->get_location();
      _mesa_glsl_error(&loc, state,
                       "function `%s' return type can't contain a sampler",
                       name);
   }

   /* Verify that this function's signature either doesn't match a previously
    * seen signature for a function with the same name, or, if a match is found,
    * that the previously seen signature does not have an associated definition.
    */
   f = state->symbols->get_function(name);
   if (f != NULL && (state->es_shader || f->has_user_signature())) {
      sig = f->exact_matching_signature(&hir_parameters);
      if (sig != NULL) {
	 const char *badvar = sig->qualifiers_match(&hir_parameters);
	 if (badvar != NULL) {
	    YYLTYPE loc = this->get_location();

	    _mesa_glsl_error(&loc, state, "function `%s' parameter `%s' "
			     "qualifiers don't match prototype", name, badvar);
	 }

	 if (sig->return_type != return_type) {
	    YYLTYPE loc = this->get_location();

	    _mesa_glsl_error(&loc, state, "function `%s' return type doesn't "
			     "match prototype", name);
	 }

	 if (is_definition && sig->is_defined) {
	    YYLTYPE loc = this->get_location();

	    _mesa_glsl_error(& loc, state, "function `%s' redefined", name);
	 }
      }
   } else {
      f = new(ctx) ir_function(name);
      if (!state->symbols->add_function(f)) {
	 /* This function name shadows a non-function use of the same name. */
	 YYLTYPE loc = this->get_location();

	 _mesa_glsl_error(&loc, state, "function name `%s' conflicts with "
			  "non-function", name);
	 return NULL;
      }

      emit_function(state, f);
   }

   /* Verify the return type of main() */
   if (strcmp(name, "main") == 0) {
      if (! return_type->is_void()) {
	 YYLTYPE loc = this->get_location();

	 _mesa_glsl_error(& loc, state, "main() must return void");
      }

      if (!hir_parameters.is_empty()) {
	 YYLTYPE loc = this->get_location();

	 _mesa_glsl_error(& loc, state, "main() must not take any parameters");
      }
   }

   /* Finish storing the information about this new function in its signature.
    */
   if (sig == NULL) {
      sig = new(ctx) ir_function_signature(return_type);
      f->add_signature(sig);
   }

   sig->replace_parameters(&hir_parameters);
   signature = sig;

   /* Function declarations (prototypes) do not have r-values.
    */
   return NULL;
}


ir_rvalue *
ast_function_definition::hir(exec_list *instructions,
			     struct _mesa_glsl_parse_state *state)
{
   prototype->is_definition = true;
   prototype->hir(instructions, state);

   ir_function_signature *signature = prototype->signature;
   if (signature == NULL)
      return NULL;

   assert(state->current_function == NULL);
   state->current_function = signature;
   state->found_return = false;

   /* Duplicate parameters declared in the prototype as concrete variables.
    * Add these to the symbol table.
    */
   state->symbols->push_scope();
   foreach_iter(exec_list_iterator, iter, signature->parameters) {
      ir_variable *const var = ((ir_instruction *) iter.get())->as_variable();

      assert(var != NULL);

      /* The only way a parameter would "exist" is if two parameters have
       * the same name.
       */
      if (state->symbols->name_declared_this_scope(var->name)) {
	 YYLTYPE loc = this->get_location();

	 _mesa_glsl_error(& loc, state, "parameter `%s' redeclared", var->name);
      } else {
	 state->symbols->add_variable(var);
      }
   }

   /* Convert the body of the function to HIR. */
   this->body->hir(&signature->body, state);
   signature->is_defined = true;

   state->symbols->pop_scope();

   assert(state->current_function == signature);
   state->current_function = NULL;

   if (!signature->return_type->is_void() && !state->found_return) {
      YYLTYPE loc = this->get_location();
      _mesa_glsl_error(& loc, state, "function `%s' has non-void return type "
		       "%s, but no return statement",
		       signature->function_name(),
		       signature->return_type->name);
   }

   /* Function definitions do not have r-values.
    */
   return NULL;
}


ir_rvalue *
ast_jump_statement::hir(exec_list *instructions,
			struct _mesa_glsl_parse_state *state)
{
   void *ctx = state;

   switch (mode) {
   case ast_return: {
      ir_return *inst;
      assert(state->current_function);

      if (opt_return_value) {
	 ir_rvalue *const ret = opt_return_value->hir(instructions, state);

	 /* The value of the return type can be NULL if the shader says
	  * 'return foo();' and foo() is a function that returns void.
	  *
	  * NOTE: The GLSL spec doesn't say that this is an error.  The type
	  * of the return value is void.  If the return type of the function is
	  * also void, then this should compile without error.  Seriously.
	  */
	 const glsl_type *const ret_type =
	    (ret == NULL) ? glsl_type::void_type : ret->type;

	 /* Implicit conversions are not allowed for return values. */
	 if (state->current_function->return_type != ret_type) {
	    YYLTYPE loc = this->get_location();

	    _mesa_glsl_error(& loc, state,
			     "`return' with wrong type %s, in function `%s' "
			     "returning %s",
			     ret_type->name,
			     state->current_function->function_name(),
			     state->current_function->return_type->name);
	 }

	 inst = new(ctx) ir_return(ret);
      } else {
	 if (state->current_function->return_type->base_type !=
	     GLSL_TYPE_VOID) {
	    YYLTYPE loc = this->get_location();

	    _mesa_glsl_error(& loc, state,
			     "`return' with no value, in function %s returning "
			     "non-void",
			     state->current_function->function_name());
	 }
	 inst = new(ctx) ir_return;
      }

      state->found_return = true;
      instructions->push_tail(inst);
      break;
   }

   case ast_discard:
      if (state->target != fragment_shader) {
	 YYLTYPE loc = this->get_location();

	 _mesa_glsl_error(& loc, state,
			  "`discard' may only appear in a fragment shader");
      }
      instructions->push_tail(new(ctx) ir_discard);
      break;

   case ast_break:
   case ast_continue:
      /* FINISHME: Handle switch-statements.  They cannot contain 'continue',
       * FINISHME: and they use a different IR instruction for 'break'.
       */
      /* FINISHME: Correctly handle the nesting.  If a switch-statement is
       * FINISHME: inside a loop, a 'continue' is valid and will bind to the
       * FINISHME: loop.
       */
      if (state->loop_or_switch_nesting == NULL) {
	 YYLTYPE loc = this->get_location();

	 _mesa_glsl_error(& loc, state,
			  "`%s' may only appear in a loop",
			  (mode == ast_break) ? "break" : "continue");
      } else {
	 ir_loop *const loop = state->loop_or_switch_nesting->as_loop();

	 /* Inline the for loop expression again, since we don't know
	  * where near the end of the loop body the normal copy of it
	  * is going to be placed.
	  */
	 if (mode == ast_continue &&
	     state->loop_or_switch_nesting_ast->rest_expression) {
	    state->loop_or_switch_nesting_ast->rest_expression->hir(instructions,
								    state);
	 }

	 if (loop != NULL) {
	    ir_loop_jump *const jump =
	       new(ctx) ir_loop_jump((mode == ast_break)
				     ? ir_loop_jump::jump_break
				     : ir_loop_jump::jump_continue);
	    instructions->push_tail(jump);
	 }
      }

      break;
   }

   /* Jump instructions do not have r-values.
    */
   return NULL;
}


ir_rvalue *
ast_selection_statement::hir(exec_list *instructions,
			     struct _mesa_glsl_parse_state *state)
{
   void *ctx = state;

   ir_rvalue *const condition = this->condition->hir(instructions, state);

   /* From page 66 (page 72 of the PDF) of the GLSL 1.50 spec:
    *
    *    "Any expression whose type evaluates to a Boolean can be used as the
    *    conditional expression bool-expression. Vector types are not accepted
    *    as the expression to if."
    *
    * The checks are separated so that higher quality diagnostics can be
    * generated for cases where both rules are violated.
    */
   if (!condition->type->is_boolean() || !condition->type->is_scalar()) {
      YYLTYPE loc = this->condition->get_location();

      _mesa_glsl_error(& loc, state, "if-statement condition must be scalar "
		       "boolean");
   }

   ir_if *const stmt = new(ctx) ir_if(condition);

   if (then_statement != NULL) {
      state->symbols->push_scope();
      then_statement->hir(& stmt->then_instructions, state);
      state->symbols->pop_scope();
   }

   if (else_statement != NULL) {
      state->symbols->push_scope();
      else_statement->hir(& stmt->else_instructions, state);
      state->symbols->pop_scope();
   }

   instructions->push_tail(stmt);

   /* if-statements do not have r-values.
    */
   return NULL;
}


void
ast_iteration_statement::condition_to_hir(ir_loop *stmt,
					  struct _mesa_glsl_parse_state *state)
{
   void *ctx = state;

   if (condition != NULL) {
      ir_rvalue *const cond =
	 condition->hir(& stmt->body_instructions, state);

      if ((cond == NULL)
	  || !cond->type->is_boolean() || !cond->type->is_scalar()) {
	 YYLTYPE loc = condition->get_location();

	 _mesa_glsl_error(& loc, state,
			  "loop condition must be scalar boolean");
      } else {
	 /* As the first code in the loop body, generate a block that looks
	  * like 'if (!condition) break;' as the loop termination condition.
	  */
	 ir_rvalue *const not_cond =
	    new(ctx) ir_expression(ir_unop_logic_not, glsl_type::bool_type, cond,
				   NULL);

	 ir_if *const if_stmt = new(ctx) ir_if(not_cond);

	 ir_jump *const break_stmt =
	    new(ctx) ir_loop_jump(ir_loop_jump::jump_break);

	 if_stmt->then_instructions.push_tail(break_stmt);
	 stmt->body_instructions.push_tail(if_stmt);
      }
   }
}


ir_rvalue *
ast_iteration_statement::hir(exec_list *instructions,
			     struct _mesa_glsl_parse_state *state)
{
   void *ctx = state;

   /* For-loops and while-loops start a new scope, but do-while loops do not.
    */
   if (mode != ast_do_while)
      state->symbols->push_scope();

   if (init_statement != NULL)
      init_statement->hir(instructions, state);

   ir_loop *const stmt = new(ctx) ir_loop();
   instructions->push_tail(stmt);

   /* Track the current loop and / or switch-statement nesting.
    */
   ir_instruction *const nesting = state->loop_or_switch_nesting;
   ast_iteration_statement *nesting_ast = state->loop_or_switch_nesting_ast;

   state->loop_or_switch_nesting = stmt;
   state->loop_or_switch_nesting_ast = this;

   if (mode != ast_do_while)
      condition_to_hir(stmt, state);

   if (body != NULL)
      body->hir(& stmt->body_instructions, state);

   if (rest_expression != NULL)
      rest_expression->hir(& stmt->body_instructions, state);

   if (mode == ast_do_while)
      condition_to_hir(stmt, state);

   if (mode != ast_do_while)
      state->symbols->pop_scope();

   /* Restore previous nesting before returning.
    */
   state->loop_or_switch_nesting = nesting;
   state->loop_or_switch_nesting_ast = nesting_ast;

   /* Loops do not have r-values.
    */
   return NULL;
}


ir_rvalue *
ast_type_specifier::hir(exec_list *instructions,
			  struct _mesa_glsl_parse_state *state)
{
   if (!this->is_precision_statement && this->structure == NULL)
      return NULL;

   YYLTYPE loc = this->get_location();

   if (this->precision != ast_precision_none
       && state->language_version != 100
       && state->language_version < 130) {
      _mesa_glsl_error(&loc, state,
                       "precision qualifiers exist only in "
                       "GLSL ES 1.00, and GLSL 1.30 and later");
      return NULL;
   }
   if (this->precision != ast_precision_none
       && this->structure != NULL) {
      _mesa_glsl_error(&loc, state,
                       "precision qualifiers do not apply to structures");
      return NULL;
   }

   /* If this is a precision statement, check that the type to which it is
    * applied is either float or int.
    *
    * From section 4.5.3 of the GLSL 1.30 spec:
    *    "The precision statement
    *       precision precision-qualifier type;
    *    can be used to establish a default precision qualifier. The type
    *    field can be either int or float [...].  Any other types or
    *    qualifiers will result in an error.
    */
   if (this->is_precision_statement) {
      assert(this->precision != ast_precision_none);
      assert(this->structure == NULL); /* The check for structures was
                                        * performed above. */
      if (this->is_array) {
         _mesa_glsl_error(&loc, state,
                          "default precision statements do not apply to "
                          "arrays");
         return NULL;
      }
      if (this->type_specifier != ast_float
          && this->type_specifier != ast_int) {
         _mesa_glsl_error(&loc, state,
                          "default precision statements apply only to types "
                          "float and int");
         return NULL;
      }

      /* FINISHME: Translate precision statements into IR. */
      return NULL;
   }

   if (this->structure != NULL)
      return this->structure->hir(instructions, state);

   return NULL;
}


ir_rvalue *
ast_struct_specifier::hir(exec_list *instructions,
			  struct _mesa_glsl_parse_state *state)
{
   unsigned decl_count = 0;

   /* Make an initial pass over the list of structure fields to determine how
    * many there are.  Each element in this list is an ast_declarator_list.
    * This means that we actually need to count the number of elements in the
    * 'declarations' list in each of the elements.
    */
   foreach_list_typed (ast_declarator_list, decl_list, link,
		       &this->declarations) {
      foreach_list_const (decl_ptr, & decl_list->declarations) {
	 decl_count++;
      }
   }

   /* Allocate storage for the structure fields and process the field
    * declarations.  As the declarations are processed, try to also convert
    * the types to HIR.  This ensures that structure definitions embedded in
    * other structure definitions are processed.
    */
   glsl_struct_field *const fields = ralloc_array(state, glsl_struct_field,
						  decl_count);

   unsigned i = 0;
   foreach_list_typed (ast_declarator_list, decl_list, link,
		       &this->declarations) {
      const char *type_name;

      decl_list->type->specifier->hir(instructions, state);

      /* Section 10.9 of the GLSL ES 1.00 specification states that
       * embedded structure definitions have been removed from the language.
       */
      if (state->es_shader && decl_list->type->specifier->structure != NULL) {
	 YYLTYPE loc = this->get_location();
	 _mesa_glsl_error(&loc, state, "Embedded structure definitions are "
			  "not allowed in GLSL ES 1.00.");
      }

      const glsl_type *decl_type =
	 decl_list->type->specifier->glsl_type(& type_name, state);

      foreach_list_typed (ast_declaration, decl, link,
			  &decl_list->declarations) {
	 const struct glsl_type *field_type = decl_type;
	 if (decl->is_array) {
	    YYLTYPE loc = decl->get_location();
	    field_type = process_array_type(&loc, decl_type, decl->array_size,
					    state);
	 }
	 fields[i].type = (field_type != NULL)
	    ? field_type : glsl_type::error_type;
	 fields[i].name = decl->identifier;
	 i++;
      }
   }

   assert(i == decl_count);

   const glsl_type *t =
      glsl_type::get_record_instance(fields, decl_count, this->name);

   YYLTYPE loc = this->get_location();
   if (!state->symbols->add_type(name, t)) {
      _mesa_glsl_error(& loc, state, "struct `%s' previously defined", name);
   } else {
      const glsl_type **s = reralloc(state, state->user_structures,
				     const glsl_type *,
				     state->num_user_structures + 1);
      if (s != NULL) {
	 s[state->num_user_structures] = t;
	 state->user_structures = s;
	 state->num_user_structures++;
      }
   }

   /* Structure type definitions do not have r-values.
    */
   return NULL;
}
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@import MesaLib 7.11.2

Brings in support for Intel Sandy Bridge and Ivy Bridge hardware, a
new shader language compiler, and various other improvements too
numerous to list here; see <http://www.mesa3d.org/relnotes.html> for
details.
@
text
@@


1.1.1.1.2.1
log
@Pull up the following revisions, requested by mrg in #381:

external/mit/MesaLib/dist/bin/config.guess      upto 1.1.1.3
external/mit/MesaLib/dist/bin/config.sub        upto 1.1.1.3
external/mit/MesaLib/dist/bin/missing           1.1.1.1
external/mit/MesaLib/dist/bin/test-driver       1.1.1.1
external/mit/MesaLib/dist/bin/get-pick-list.sh  1.1.1.1
external/mit/MesaLib/dist/bin/install-sh        upto 1.1.1.2
external/mit/MesaLib/dist/bin/ar-lib            1.1.1.1
external/mit/MesaLib/dist/bin/bugzilla_mesa.sh  1.1.1.1
external/mit/MesaLib/dist/bin/compile           1.1.1.1
external/mit/MesaLib/dist/bin/depcomp           1.1.1.1
external/mit/MesaLib/dist/bin/ltmain.sh         1.1.1.1
external/mit/MesaLib/dist/bin/perf-annotate-jit 1.1.1.1
external/mit/MesaLib/dist/bin/shortlog_mesa.sh  1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.0.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.0.2.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.0.3.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.0.4.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.0.5.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.0.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.1.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.1.2.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.1.3.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.1.4.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.1.5.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.1.6.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.2.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.2.2.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.2.3.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.2.4.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.2.5.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.2.6.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.2.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.3.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.3.2.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/3.1     1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.3.3.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.3.4.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.3.5.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/10.3.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/3.2     1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/3.2.1   1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/3.3     1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/3.4     1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/3.4.1   1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/3.4.2   1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/3.5     1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/4.0     1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/4.0.1   1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/4.0.2   1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/4.0.3   1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/4.1     1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/5.0     1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/5.0.1   1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/5.0.2   1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/5.1     1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/6.0     1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/6.0.1   1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/6.1     1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/6.2     1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/6.2.1   1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/6.3     1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/6.3.1   1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/6.3.2   1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/6.4     1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/6.4.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/6.4.2.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/6.4.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/6.5.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/6.5.2.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/6.5.3.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/6.5.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.0.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.0.2.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.0.3.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.0.4.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.0.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.10.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.10.2.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.10.3.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.10.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.11.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.11.2.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.11.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.2.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.3.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.4.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.4.2.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.4.3.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.4.4.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.4.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.5.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.5.2.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.5.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.6.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.6.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.7.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.7.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.8.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.8.2.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.8.3.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.8.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.9.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.9.2.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/7.9.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/8.0.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/8.0.2.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/8.0.3.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/8.0.4.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/8.0.5.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/8.0.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/9.0.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/9.0.2.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/9.0.3.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/9.0.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/9.1.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/9.1.2.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/9.1.3.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/9.1.4.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/9.1.5.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/9.1.6.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/9.1.7.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/9.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/9.2.1.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/9.2.2.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/9.2.3.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/9.2.4.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/9.2.5.html 1.1.1.1
external/mit/MesaLib/dist/docs/relnotes/9.2.html 1.1.1.1
external/mit/MesaLib/dist/docs/README.UVD       1.1.1.1
external/mit/MesaLib/dist/docs/README.VCE       1.1.1.1
external/mit/MesaLib/dist/docs/VERSIONS         1.1.1.1
external/mit/MesaLib/dist/docs/application-issues.html 1.1.1.1
external/mit/MesaLib/dist/docs/gears.png        1.1.1.1
external/mit/MesaLib/dist/docs/libGL.txt        1.1.1.1
external/mit/MesaLib/dist/docs/mesa.css         1.1.1.1
external/mit/MesaLib/dist/docs/patents.txt      1.1.1.1
external/mit/MesaLib/dist/docs/postprocess.html 1.1.1.1
external/mit/MesaLib/dist/docs/viewperf.html    1.1.1.1
external/mit/MesaLib/dist/docs/vmware-guest.html 1.1.1.1
external/mit/MesaLib/dist/docs/specs/OLD/MESA_packed_depth_stencil.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/OLD/MESA_program_debug.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/OLD/MESA_resize_buffers.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/OLD/MESA_sprite_point.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/OLD/MESA_trace.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/EXT_shader_integer_mix.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/MESA_agp_offset.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/MESA_configless_context.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/MESA_copy_sub_buffer.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/MESA_drm_image.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/MESA_multithread_makecurrent.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/MESA_pack_invert.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/MESA_pixmap_colormap.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/MESA_query_renderer.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/MESA_release_buffers.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/MESA_set_3dfx_mode.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/MESA_shader_debug.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/MESA_swap_control.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/MESA_swap_frame_usage.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/MESA_texture_array.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/MESA_texture_signed_rgba.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/MESA_window_pos.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/MESA_ycbcr_texture.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/WL_bind_wayland_display.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/WL_create_wayland_buffer_from_image.spec 1.1.1.1
external/mit/MesaLib/dist/docs/specs/enums.txt  1.1.1.1
external/mit/MesaLib/dist/docs/README.WIN32     upto 1.1.1.5
external/mit/MesaLib/dist/docs/autoconf.html    upto 1.1.1.2
external/mit/MesaLib/dist/docs/bugs.html        upto 1.1.1.3
external/mit/MesaLib/dist/docs/conform.html     upto 1.1.1.2
external/mit/MesaLib/dist/docs/contents.html    upto 1.1.1.6
external/mit/MesaLib/dist/docs/debugging.html   upto 1.1.1.2
external/mit/MesaLib/dist/docs/developers.html  upto 1.1.1.3
external/mit/MesaLib/dist/docs/devinfo.html     upto 1.1.1.5
external/mit/MesaLib/dist/docs/dispatch.html    upto 1.1.1.4
external/mit/MesaLib/dist/docs/download.html    upto 1.1.1.6
external/mit/MesaLib/dist/docs/egl.html         upto 1.1.1.3
external/mit/MesaLib/dist/docs/envvars.html     upto 1.1.1.6
external/mit/MesaLib/dist/docs/extensions.html  upto 1.1.1.3
external/mit/MesaLib/dist/docs/faq.html         upto 1.1.1.4
external/mit/MesaLib/dist/docs/helpwanted.html  upto 1.1.1.3
external/mit/MesaLib/dist/docs/precompiled.html upto 1.1.1.3
external/mit/MesaLib/dist/docs/index.html       upto 1.1.1.2
external/mit/MesaLib/dist/docs/install.html     upto 1.1.1.6
external/mit/MesaLib/dist/docs/intro.html       upto 1.1.1.4
external/mit/MesaLib/dist/docs/license.html     upto 1.1.1.2
external/mit/MesaLib/dist/docs/lists.html       upto 1.1.1.5
external/mit/MesaLib/dist/docs/mangling.html    upto 1.1.1.2
external/mit/MesaLib/dist/docs/opengles.html    upto 1.1.1.3
external/mit/MesaLib/dist/docs/openvg.html      upto 1.1.1.4
external/mit/MesaLib/dist/docs/osmesa.html      upto 1.1.1.3
external/mit/MesaLib/dist/docs/perf.html        upto 1.1.1.2
external/mit/MesaLib/dist/docs/relnotes.html    upto 1.1.1.7
external/mit/MesaLib/dist/docs/repository.html  upto 1.1.1.6
external/mit/MesaLib/dist/docs/shading.html     upto 1.1.1.6
external/mit/MesaLib/dist/docs/sourcedocs.html  upto 1.1.1.2
external/mit/MesaLib/dist/docs/sourcetree.html  upto 1.1.1.3
external/mit/MesaLib/dist/docs/systems.html     upto 1.1.1.3
external/mit/MesaLib/dist/docs/thanks.html      upto 1.1.1.2
external/mit/MesaLib/dist/docs/utilities.html   upto 1.1.1.2
external/mit/MesaLib/dist/docs/versions.html    upto 1.1.1.2
external/mit/MesaLib/dist/docs/webmaster.html   upto 1.1.1.3
external/mit/MesaLib/dist/docs/xlibdriver.html  upto 1.1.1.4
external/mit/MesaLib/dist/docs/GL3.txt          1.1.1.1
external/mit/MesaLib/dist/docs/llvmpipe.html    upto 1.1.1.2
external/mit/MesaLib/dist/docs/ARB_color_buffer_float.txt 1.1.1.1
external/mit/MesaLib/dist/include/EGL/eglext.h  upto 1.1.1.4
external/mit/MesaLib/dist/include/EGL/eglplatform.h upto 1.1.1.4
external/mit/MesaLib/dist/include/EGL/eglextchromium.h 1.1.1.1
external/mit/MesaLib/dist/include/EGL/eglmesaext.h 1.1.1.1
external/mit/MesaLib/dist/include/GL/internal/dri_interface.h upto 1.1.1.6
external/mit/MesaLib/dist/include/GL/internal/sarea.h upto 1.1.1.3
external/mit/MesaLib/dist/include/GL/gl_mangle.h upto 1.1.1.6
external/mit/MesaLib/dist/include/GL/gl.h       upto 1.1.1.6
external/mit/MesaLib/dist/include/GL/glext.h    upto 1.1.1.6
external/mit/MesaLib/dist/include/GL/glx_mangle.h upto 1.1.1.3
external/mit/MesaLib/dist/include/GL/glx.h      upto 1.1.1.5
external/mit/MesaLib/dist/include/GL/glcorearb.h 1.1.1.1
external/mit/MesaLib/dist/include/GL/glxext.h   upto 1.1.1.6
external/mit/MesaLib/dist/include/GL/osmesa.h   upto 1.1.1.2
external/mit/MesaLib/dist/include/GL/wglext.h   upto 1.1.1.3
external/mit/MesaLib/dist/include/GL/wmesa.h    upto 1.1.1.3
external/mit/MesaLib/dist/include/GLES/glext.h  upto 1.1.1.3
external/mit/MesaLib/dist/include/GLES2/gl2ext.h upto 1.1.1.3
external/mit/MesaLib/dist/include/GLES2/gl2.h   upto 1.1.1.3
external/mit/MesaLib/dist/include/c99/stdbool.h upto 1.1.1.2
external/mit/MesaLib/dist/include/pci_ids/i915_pci_ids.h upto 1.1.1.2
external/mit/MesaLib/dist/include/pci_ids/i965_pci_ids.h upto 1.1.1.2
external/mit/MesaLib/dist/include/pci_ids/radeonsi_pci_ids.h 1.1.1.1
external/mit/MesaLib/dist/include/pci_ids/r200_pci_ids.h upto 1.1.1.2
external/mit/MesaLib/dist/include/pci_ids/r300_pci_ids.h upto 1.1.1.2
external/mit/MesaLib/dist/include/pci_ids/r600_pci_ids.h upto 1.1.1.2
external/mit/MesaLib/dist/include/pci_ids/vmwgfx_pci_ids.h 1.1.1.1
external/mit/MesaLib/dist/include/CL/cl_d3d10.h 1.1.1.1
external/mit/MesaLib/dist/include/CL/cl.h       1.1.1.1
external/mit/MesaLib/dist/include/CL/cl.hpp     1.1.1.1
external/mit/MesaLib/dist/include/CL/cl_d3d11.h 1.1.1.1
external/mit/MesaLib/dist/include/CL/cl_dx9_media_sharing.h 1.1.1.1
external/mit/MesaLib/dist/include/CL/cl_egl.h   1.1.1.1
external/mit/MesaLib/dist/include/CL/cl_ext.h   1.1.1.1
external/mit/MesaLib/dist/include/CL/cl_gl.h    1.1.1.1
external/mit/MesaLib/dist/include/CL/cl_gl_ext.h 1.1.1.1
external/mit/MesaLib/dist/include/CL/cl_platform.h 1.1.1.1
external/mit/MesaLib/dist/include/CL/opencl.h   1.1.1.1
external/mit/MesaLib/dist/include/c11/threads.h 1.1.1.1
external/mit/MesaLib/dist/include/c11/threads_posix.h 1.1.1.1
external/mit/MesaLib/dist/include/c11/threads_win32.h 1.1.1.1
external/mit/MesaLib/dist/include/c99_compat.h  1.1.1.1
external/mit/MesaLib/dist/include/GLES3/gl3ext.h 1.1.1.1
external/mit/MesaLib/dist/include/GLES3/gl3.h   1.1.1.1
external/mit/MesaLib/dist/include/GLES3/gl31.h  1.1.1.1
external/mit/MesaLib/dist/include/GLES3/gl3platform.h 1.1.1.1
external/mit/MesaLib/dist/include/HaikuGL/GLRenderer.h 1.1.1.1
external/mit/MesaLib/dist/include/HaikuGL/GLView.h 1.1.1.1
external/mit/MesaLib/dist/include/HaikuGL/OpenGLKit.h 1.1.1.1
external/mit/MesaLib/dist/include/HaikuGL/README 1.1.1.1
external/mit/MesaLib/dist/VERSION               1.1.1.1
external/mit/MesaLib/dist/src/egl/drivers/dri2/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/egl/drivers/dri2/egl_dri2.c upto 1.1.1.3
external/mit/MesaLib/dist/src/egl/drivers/dri2/egl_dri2.h upto 1.1.1.2
external/mit/MesaLib/dist/src/egl/drivers/dri2/platform_drm.c upto 1.1.1.2
external/mit/MesaLib/dist/src/egl/drivers/dri2/platform_wayland.c upto 1.1.1.2
external/mit/MesaLib/dist/src/egl/drivers/dri2/platform_x11.c upto 1.1.1.2
external/mit/MesaLib/dist/src/egl/drivers/dri2/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/egl/drivers/dri2/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/egl/drivers/dri2/egl_dri2_fallbacks.h 1.1.1.1
external/mit/MesaLib/dist/src/egl/drivers/dri2/platform_android.c 1.1.1.1
external/mit/MesaLib/dist/src/egl/main/eglcompiler.h upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/egl/main/eglapi.c upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/eglapi.h upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/eglconfig.c upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/eglconfig.h upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/eglsurface.c upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/eglfallbacks.c upto 1.1.1.2
external/mit/MesaLib/dist/src/egl/main/eglcontext.c upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/eglcontext.h upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/eglcurrent.c upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/eglcurrent.h upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/egldefines.h upto 1.1.1.3
external/mit/MesaLib/dist/src/egl/main/egldisplay.c upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/egldisplay.h upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/egldriver.c upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/egldriver.h upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/eglglobals.c upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/eglglobals.h upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/eglimage.c upto 1.1.1.3
external/mit/MesaLib/dist/src/egl/main/eglimage.h upto 1.1.1.3
external/mit/MesaLib/dist/src/egl/main/egllog.c upto 1.1.1.3
external/mit/MesaLib/dist/src/egl/main/egllog.h upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/eglmisc.c upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/eglmisc.h upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/eglmode.c upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/eglmode.h upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/eglmutex.h upto 1.1.1.3
external/mit/MesaLib/dist/src/egl/main/eglscreen.c upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/eglscreen.h upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/eglstring.c upto 1.1.1.3
external/mit/MesaLib/dist/src/egl/main/eglstring.h upto 1.1.1.3
external/mit/MesaLib/dist/src/egl/main/eglsync.c upto 1.1.1.2
external/mit/MesaLib/dist/src/egl/main/eglsurface.h upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/egltypedefs.h upto 1.1.1.4
external/mit/MesaLib/dist/src/egl/main/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/egl/main/egl.pc.in upto 1.1.1.2
external/mit/MesaLib/dist/src/egl/main/eglsync.h upto 1.1.1.2
external/mit/MesaLib/dist/src/egl/main/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/egl/main/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/egl/main/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/egl/main/README.txt 1.1.1.1
external/mit/MesaLib/dist/src/egl/wayland/wayland-drm/wayland-drm.c upto 1.1.1.2
external/mit/MesaLib/dist/src/egl/wayland/wayland-drm/wayland-drm.h upto 1.1.1.2
external/mit/MesaLib/dist/src/egl/wayland/wayland-drm/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/egl/wayland/wayland-drm/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/egl/wayland/wayland-drm/wayland-drm.xml 1.1.1.1
external/mit/MesaLib/dist/src/egl/wayland/wayland-egl/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/egl/wayland/wayland-egl/wayland-egl-priv.h upto 1.1.1.2
external/mit/MesaLib/dist/src/egl/wayland/wayland-egl/wayland-egl.c upto 1.1.1.2
external/mit/MesaLib/dist/src/egl/wayland/wayland-egl/wayland-egl.pc.in upto 1.1.1.2
external/mit/MesaLib/dist/src/egl/wayland/wayland-egl/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/egl/wayland/wayland-egl/wayland-egl-symbols-check 1.1.1.1
external/mit/MesaLib/dist/src/egl/wayland/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/egl/wayland/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/egl/docs/EGL_MESA_screen_surface 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/cso_cache/cso_context.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/cso_cache/cso_cache.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/cso_cache/cso_cache.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/cso_cache/cso_context.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/cso_cache/cso_hash.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/cso_cache/cso_hash.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pipe_aaline.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_context.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_context.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_gs.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_gs.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pipe.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pipe.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pipe_flatshade.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pipe_aapoint.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pipe_clip.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pipe_cull.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pipe_pstipple.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pipe_offset.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pipe_unfilled.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pipe_stipple.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pipe_twoside.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pipe_util.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pipe_validate.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pipe_vbuf.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pipe_wide_line.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pipe_wide_point.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_private.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pt.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pt.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pt_decompose.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pt_emit.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pt_fetch.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pt_post_vs.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pt_util.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pt_vsplit.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pt_vsplit_tmp.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_so_emit_tmp.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_split_tmp.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_vs_variant.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_vbuf.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_vertex.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_vertex.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_vs.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_vs.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_vs_exec.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_vs_llvm.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_cliptest_tmp.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_decompose_tmp.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_gs_tmp.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_llvm.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_llvm.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_llvm_sample.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_prim_assembler.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_pt_so_emit.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_prim_assembler.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/draw/draw_prim_assembler_tmp.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_assert.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_arit.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_arit.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_gather.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/f.cpp upto 1.
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_format_yuv.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_gather.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_const.c upto 1.
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_const.h upto 1.
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_conv.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_conv.h 1.1.1.3-1.
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_init.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_debug.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_flow.c upto 1.
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_misc.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_flow.h upto 1.
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_format.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_printf.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_init.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_printf.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_quad.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_intr.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_intr.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_logic.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_logic.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_pack.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_pack.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_sample.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_sample.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_struct.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_struct.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_swizzle.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_swizzle.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_type.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_type.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_assert.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_bitarit.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_bitarit.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_quad.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_arit_overflow.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_arit_overflow.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_format_aos_array.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_format_float.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_format_srgb.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_tgsi.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/indices/u_indices_gen.py upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/indices/u_indices.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/indices/u_indices.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/indices/u_unfilled_indices.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/indices/u_indices_priv.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/indices/u_unfilled_gen.py upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/indices/u_primconvert.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/indices/u_primconvert.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/os/os_memory.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/os/os_memory_debug.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/os/os_mman.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/os/os_misc.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/os/os_misc.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/os/os_thread.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/os/os_time.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/os/os_time.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/os/os_process.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/os/os_process.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/pipebuffer/pb_buffer.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/pipebuffer/pb_bufmgr_ondemand.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/pipebuffer/pb_buffer_malloc.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/pipebuffer/pb_bufmgr.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/pipebuffer/pb_bufmgr_alt.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/pipebuffer/pb_bufmgr_pool.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/pipebuffer/pb_validate.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/pipebuffer/pb_validate.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/rbug/rbug_context.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/rbug/rbug.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/rbug/README 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/rbug/rbug_connection.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/rbug/rbug_connection.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/rbug/rbug_context.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/rbug/rbug_core.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/rbug/rbug_core.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/rbug/rbug_internal.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/rbug/rbug_shader.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/rbug/rbug_shader.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/rbug/rbug_texture.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/rbug/rbug_texture.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/rtasm/rtasm_execmem.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/rtasm/rtasm_cpu.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/rtasm/rtasm_cpu.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/rtasm/rtasm_execmem.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/rtasm/rtasm_x86sse.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/rtasm/rtasm_x86sse.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_opcode_tmp.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_build.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_build.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_dump.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_dump.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_exec.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_exec.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_info.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_info.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_iterate.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_iterate.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_transform.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_parse.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_parse.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_sanity.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_sanity.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_scan.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_scan.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_text.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_text.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_strings.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_transform.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_ureg.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_ureg.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_util.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_util.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/tgsi_strings.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/translate/translate_cache.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/translate/translate.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/translate/translate.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/translate/translate_cache.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/translate/translate_generic.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/translate/translate_sse.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_cpu_detect.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_atomic.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_blit.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_blit.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_blitter.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_blitter.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_cache.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_clear.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_debug_memory.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_cpu_detect.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_debug.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_debug.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_debug_symbol.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_debug_stack.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_debug_stack.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_double_list.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_dump_defines.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_draw_quad.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_draw_quad.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_dump.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_dump_state.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format.csv upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_latc.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_yuv.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_pack.py upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_parse.py upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_table.py upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_gen_mipmap.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_gen_mipmap.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_handle_table.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_handle_table.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_hash_table.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_hash_table.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_inlines.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_keymap.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_keymap.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_math.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_math.h upto 1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_memory.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_network.c upto 1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_network.h upto 1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_pack_color.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_pointer.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_prim.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_vbuf.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_rect.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_simple_list.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_slab.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_suballoc.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_snprintf.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_simple_shaders.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_simple_shaders.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_sse.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_string.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_surface.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_surface.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_texture.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_texture.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_tile.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_tile.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_time.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_transfer.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_transfer.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_upload_mgr.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_upload_mgr.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_caps.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_caps.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_debug_describe.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_debug_describe.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_debug_refcnt.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_debug_refcnt.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_draw.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_draw.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format.c 1.4
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_other.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_r11g11b10f.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_rgtc.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_s3tc.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_helpers.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_helpers.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_tests.c upto 1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_yuv.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_zs.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_zs.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_framebuffer.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_framebuffer.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_half.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_range.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_index_modify.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_index_modify.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_linkage.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_linkage.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_pstipple.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_pstipple.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_resource.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_sampler.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_slab.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_staging.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_surfaces.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_surfaces.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_video.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_debug_flush.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_debug_flush.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_dual_blend.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_bptc.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_bptc.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_etc.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_format_etc.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_resource.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_suballoc.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/util/u_vbuf.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/hud/hud_cpu.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/hud/font.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/hud/font.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/hud/hud_context.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/hud/hud_context.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/hud/hud_driver_query.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/hud/hud_fps.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/hud/hud_private.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_compositor.c 1.1-1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_compositor.h 1.1-1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_csc.c 1.1-1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_csc.h 1.1-1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_decoder.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_decoder.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_defines.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_deint_filter.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_deint_filter.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_idct.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_idct.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_matrix_filter.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_matrix_filter.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_mc.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_mc.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_median_filter.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_median_filter.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_rbsp.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_mpeg12_decoder.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_types.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_vertex_buffers.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_vertex_buffers.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_video_buffer.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_video_buffer.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_vlc.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_winsys.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_winsys_dri.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_zscan.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/vl/vl_zscan.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/SConscript upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/auxiliary/target-helpers/inline_debug_helper.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/target-helpers/inline_sw_helper.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/target-helpers/inline_wrapper_sw_helper.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/auxiliary/target-helpers/inline_drm_helper.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/pipe-loader/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/pipe-loader/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/pipe-loader/pipe_loader.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/pipe-loader/pipe_loader.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/pipe-loader/pipe_loader_priv.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/postprocess/filters.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/postprocess/ADDING 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/postprocess/postprocess.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/postprocess/pp_celshade.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/postprocess/pp_celshade.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/postprocess/pp_colors.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/postprocess/pp_colors.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/postprocess/pp_filters.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/postprocess/pp_init.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/postprocess/pp_mlaa.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/postprocess/pp_mlaa.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/postprocess/pp_mlaa_areamap.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/postprocess/pp_private.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/postprocess/pp_program.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/auxiliary/postprocess/pp_run.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/source/cso/blend.rst 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/source/cso/dsa.rst 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/source/cso/rasterizer.rst 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/source/cso/sampler.rst 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/source/cso/shader.rst 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/source/cso/velems.rst 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/source/conf.py upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/docs/source/context.rst 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/source/cso.rst 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/source/debugging.rst 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/source/distro.rst 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/source/format.rst 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/source/glossary.rst 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/source/index.rst 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/source/intro.rst 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/source/pipeline.txt 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/source/resources.rst 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/source/screen.rst 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/source/tgsi.rst 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/d3d11ddi.txt 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/llvm-todo.txt 1.1.1.1
external/mit/MesaLib/dist/src/gallium/docs/make.bat 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_batch.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/i915/TODO 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/i915/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_blit.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_blit.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_fpc_translate.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_clear.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_context.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_context.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_debug.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_debug.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_debug_fp.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_flush.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_fpc.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_fpc_emit.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_state_derived.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_prim_emit.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_prim_vbuf.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_reg.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_screen.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_screen.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_state.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_state.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_debug_private.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_state_dynamic.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_state_emit.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_state_immediate.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_state_inlines.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_state_sampler.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_surface.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_winsys.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/i915/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/i915/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/i915/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_batchbuffer.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_query.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_resource.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_resource.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_resource_buffer.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_resource_texture.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_state_static.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_surface.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/i915/i915_fpc_optimize.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/identity/id_context.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/identity/SConscript upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/identity/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/identity/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/identity/id_objects.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/identity/id_objects.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/identity/id_screen.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/identity/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_context.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/SConscript upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_clear.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_clear.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_draw_arrays.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_state_so.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_context.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_debug.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_rast_priv.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_flush.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_flush.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_jit.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_jit.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_perf.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_query.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_query.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_rast.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_rast.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_rast_tri.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_scene.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_scene.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_limits.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_memory.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_screen.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_screen.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_setup.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_setup.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_setup_context.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_setup_line.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_setup_point.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_setup_tri.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_state.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_state_blend.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_state_clip.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_state_derived.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_state_fs.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_state_rasterizer.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_state_sampler.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_state_surface.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_state_vertex.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_state_vs.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_surface.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_surface.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_test.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_test_blend.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_test_conv.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_test_format.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_test_main.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_tex_sample.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_texture.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_texture.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_bld_alpha.c 1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_bld_alpha.h 1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_bld_blend.h 1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_bld_blend_aos.c 1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_test_arit.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_bld_depth.c 1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_bld_depth.h 1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_bld_interp.c 1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_bld_interp.h 1.4
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_memory.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_rast_debug.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_rast_tri_tmp.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_state_fs.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_state_gs.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_state_setup.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_state_setup.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_test_printf.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_tex_sample.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/lp_bld_blend.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/lib/Makefile 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/lib/gf100.asm 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/lib/gf100.asm.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/lib/gk104.asm 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/lib/gk104.asm.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/lib/gk110.asm 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/lib/gk110.asm.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/lib/gm107.asm 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/lib/gm107.asm.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_bb.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_build_util.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_build_util.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_graph.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_graph.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_inlines.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_gm107.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_gm107.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nv50.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_ssa.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_target.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_target_gm107.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_target_gm107.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_target_nv50.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_target_nv50.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_target_nvc0.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_target_nvc0.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_util.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_util.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nouveau_fence.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nouveau_context.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nouveau_screen.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nouveau_screen.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv_m2mf.xml.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv_object.xml.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nouveau_winsys.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nouveau_compiler.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nouveau_buffer.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nouveau_buffer.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nouveau_mm.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nouveau_mm.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nouveau_statebuf.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nouveau_debug.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nouveau_heap.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nouveau_heap.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nouveau_video.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nouveau_video.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nouveau_vp3_video.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nouveau_vp3_video.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nouveau_vp3_video_bsp.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nouveau_vp3_video_vp.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv17_mpeg.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv31_mpeg.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv01_2d.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30-40_3d.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_clear.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_context.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_context.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_draw.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_format.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_format.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_fragprog.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_fragtex.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_miptree.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_push.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_query.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_resource.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_resource.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_screen.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_screen.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_state.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_state.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_state_validate.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_texture.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_transfer.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_transfer.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_vbo.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_vertprog.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_vertprog.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv30_winsys.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv40_vertprog.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nv40_verttex.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nvfx_fragprog.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nvfx_shader.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv30/nvfx_vertprog.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_2d.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_3d.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_3ddefs.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_blit.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_context.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_context.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_defs.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_draw.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_formats.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_miptree.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_program.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_program.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_push.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_query.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_resource.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_resource.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_screen.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_screen.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_shader_state.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_state.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_state_validate.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_stateobj.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_stateobj_tex.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_surface.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_tex.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_texture.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_transfer.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_transfer.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_vbo.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv50_winsys.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv84_video.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv84_video.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv84_video_bsp.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv84_video_vp.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv98_video.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv98_video.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv98_video_bsp.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv98_video_ppp.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nv50/nv98_video_vp.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/mme/Makefile 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/mme/com9097.mme 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/mme/com9097.mme.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_2d.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_3d.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_3ddefs.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_compute.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_compute.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_compute.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_context.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_context.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_draw.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_formats.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_m2mf.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_program.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_program.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_push.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_query.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_resource.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_resource.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_screen.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_shader_state.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_state.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_stateobj.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_transfer.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_vbo_translate.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_video.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_video.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_video_bsp.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_video_ppp.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_video_vp.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nvc0_winsys.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nve4_compute.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nve4_compute.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nve4_compute.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/nouveau/nvc0/nve4_p2mf.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/a2xx.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/disasm-a2xx.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_blend.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_blend.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_compiler.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_compiler.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_context.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_context.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_draw.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_draw.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_emit.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_emit.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_gmem.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_gmem.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_program.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_program.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_rasterizer.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_rasterizer.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_screen.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_screen.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_texture.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_texture.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_util.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_util.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_zsa.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/fd2_zsa.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/instr-a2xx.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/ir-a2xx.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/ir-a2xx.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/adreno_common.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/adreno_pm4.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/disasm.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_context.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_context.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_draw.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_draw.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_fence.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_fence.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_gmem.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_gmem.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_lowering.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_lowering.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_program.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_program.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_query.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_query.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_query_hw.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_query_hw.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_query_sw.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_query_sw.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_resource.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_resource.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_screen.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_screen.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_state.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_state.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_surface.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_surface.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_texture.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ir3/disasm-a3xx.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ir3/instr-a3xx.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ir3/ir3.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ir3/ir3.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ir3/ir3_compiler.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ir3/ir3_compiler.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ir3/ir3_compiler_old.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ir3/ir3_cp.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ir3/ir3_depth.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ir3/ir3_dump.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ir3/ir3_flatten.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ir3/ir3_ra.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ir3/ir3_sched.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ir3/ir3_shader.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ir3/ir3_shader.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ir3/ir3_visitor.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_texture.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_util.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/freedreno_util.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/a3xx.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_blend.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_blend.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_context.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_context.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_draw.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_draw.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_emit.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_emit.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_gmem.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_gmem.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_program.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_program.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_query.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_query.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_rasterizer.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_rasterizer.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_screen.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_screen.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_texture.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_texture.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_util.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_util.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_zsa.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/fd3_zsa.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/genhw/gen_blitter.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/genhw/gen_eu_isa.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/genhw/gen_eu_message.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/genhw/gen_mi.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/genhw/gen_regs.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/genhw/gen_render_3d.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/genhw/gen_render_dynamic.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/genhw/gen_render_surface.xml.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/genhw/genhw.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_3d.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_3d.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_3d_pipeline.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_3d_pipeline.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_3d_pipeline_dump.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_3d_pipeline_gen6.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_3d_pipeline_gen6.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_3d_pipeline_gen7.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_3d_pipeline_gen7.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_blit.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_blit.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_blitter.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_blitter.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_cp.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_blitter_blt.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_blitter_pipe.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_blitter_rectlist.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_common.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_context.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_context.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_cp.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_format.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_format.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_gpe.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_gpe_gen6.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_gpe_gen6.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_gpe_gen7.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_gpe_gen7.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_gpgpu.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_gpgpu.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_layout.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_layout.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_public.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_query.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_query.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/include/brw_defines.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/include/brw_structs.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_resource.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_resource.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_screen.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_screen.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_shader.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_shader.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_state.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_state.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_transfer.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_transfer.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_video.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/ilo_video.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/shader/ilo_shader_cs.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/shader/ilo_shader_fs.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/shader/ilo_shader_gs.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/shader/ilo_shader_internal.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/shader/ilo_shader_vs.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/shader/toy_compiler.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/shader/toy_compiler.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/shader/toy_compiler_asm.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/shader/toy_compiler_disasm.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/shader/toy_compiler_reg.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/shader/toy_helpers.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/shader/toy_legalize.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/shader/toy_legalize.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/shader/toy_legalize_ra.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/shader/toy_optimize.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/shader/toy_optimize.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/shader/toy_tgsi.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/ilo/shader/toy_tgsi.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_chipset.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/tests/omod_two_writers.test 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/tests/r300_compiler_tests.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/tests/r300_compiler_tests.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/tests/radeon_compiler_optimize_tests.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/tests/radeon_compiler_regalloc_tests.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/tests/radeon_compiler_util_tests.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/tests/rc_test_helpers.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/tests/rc_test_helpers.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/tests/regalloc_tex_1d_swizzle.test 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/tests/unit_test.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/tests/unit_test.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/memory_pool.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/memory_pool.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/r300_fragprog.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/r300_fragprog.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/r300_fragprog_emit.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/r300_fragprog_swizzle.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/r300_fragprog_swizzle.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/r3xx_fragprog.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/r3xx_vertprog.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/r3xx_vertprog_dump.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/r500_fragprog.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/r500_fragprog.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/r500_fragprog_emit.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_code.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_code.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_compiler.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_list.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_compiler.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_compiler_util.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_compiler_util.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_dataflow.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_dataflow.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_dataflow_deadcode.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_dataflow_swizzles.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_emulate_branches.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_emulate_branches.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_emulate_loops.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_emulate_loops.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_inline_literals.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_list.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_opcodes.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_opcodes.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_optimize.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_pair_dead_sources.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_pair_schedule.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_pair_translate.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_program.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_program.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_program_alu.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_program_alu.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_program_constants.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_program_pair.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_program_pair.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_program_print.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_program_tex.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_program_tex.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_regalloc.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_remove_constants.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_remove_constants.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_rename_regs.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_rename_regs.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_swizzle.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_variable.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_variable.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/radeon_vert_fc.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_blit.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_cb.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_shader_semantics.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_chipset.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_context.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_context.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_cs.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_debug.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_emit.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_emit.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_flush.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_fs.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_fs.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_query.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_resource.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_reg.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_render.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_screen.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_screen.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_state_derived.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_state.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_texture_desc.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_texture_desc.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_transfer.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_texture.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_texture.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_tgsi_to_rc.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_vs.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_vs.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/r300/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_defines.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_render_translate.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_screen_buffer.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_screen_buffer.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_transfer.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r300/r300_vs_draw.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r300/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r300/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_context.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/SConscript upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_clear.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_clear.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_draw_arrays.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_context.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_fs_exec.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_flush.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_flush.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_fs.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_prim_vbuf.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_quad_depth_test.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_prim_vbuf.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_quad.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_quad_blend.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_quad_fs.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_quad_depth_test_tmp.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_quad_pipe.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_quad_pipe.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_state_blend.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_query.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_query.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_screen.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_screen.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_setup.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_setup.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_state.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_state_derived.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_state_clip.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_state_rasterizer.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_tex_tile_cache.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_state_sampler.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_state_surface.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_state_vertex.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_surface.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_surface.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_tex_sample.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_tex_sample.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_state_shader.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_tex_tile_cache.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_texture.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_texture.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_tile_cache.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_tile_cache.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_limits.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/softpipe/sp_state_so.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/svga/include/svga3d_shaderdefs.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/svga/include/svga3d_caps.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/svga/include/svga3d_reg.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/svga/include/svga_escape.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/svga/include/svga_overlay.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/svga/include/svga_reg.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/svga/include/svga_types.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/svga/include/README 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/svga/include/includeCheck.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/svga/include/svga3d_cmd.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/svga/include/svga3d_devcaps.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/svga/include/svga3d_limits.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/svga/include/svga3d_surfacedefs.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/svga/include/svga3d_types.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/svga/include/vmware_pack_begin.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/svga/include/vmware_pack_end.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/svga/svgadump/svga_dump.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_context.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/SConscript upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_cmd.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_cmd.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_draw_arrays.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_context.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_draw.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_draw.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_pipe_depthstencil.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_draw_elements.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_draw_private.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_pipe_blit.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_pipe_clear.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_pipe_constants.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_pipe_rasterizer.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_pipe_draw.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_pipe_flush.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_pipe_fs.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_pipe_misc.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_pipe_query.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/svga/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_pipe_sampler.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_pipe_vertex.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_pipe_vs.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_screen.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_screen.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_state_framebuffer.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_surface.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_screen_cache.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_screen_cache.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_tgsi.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_format.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_surface.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/svga/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/svga/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_state.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_state.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_state_constants.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_state_need_swtnl.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_state_fs.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_swtnl_backend.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_state_rss.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_state_tss.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_state_vdecl.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_state_vs.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_swtnl_private.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_swtnl_draw.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_swtnl_state.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_tgsi.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_tgsi_decl_sm30.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_tgsi_emit.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_tgsi_insn.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_winsys.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_resource.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_resource.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_resource_buffer.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_resource_buffer.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_resource_buffer_upload.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_resource_texture.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_resource_texture.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_sampler_view.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_format.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_shader.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/svga/svga_shader.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/trace/tr_context.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/trace/SConscript upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/trace/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/trace/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/trace/tr_context.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/trace/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/trace/tr_dump.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/trace/tr_dump.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/trace/tr_dump_state.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/trace/tr_dump_state.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/trace/README 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/trace/tr_screen.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/trace/tr_screen.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/trace/tr_dump_defines.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/trace/tr_texture.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/drivers/trace/tr_texture.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/drivers/trace/trace.xsl 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/galahad/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/galahad/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/galahad/glhd_context.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/galahad/glhd_context.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/galahad/glhd_objects.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/galahad/glhd_screen.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/galahad/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/galahad/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/noop/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/noop/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/noop/noop_pipe.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/noop/noop_state.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/noop/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/noop/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/notes.markdown 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_bc.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_bc_builder.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_bc_decoder.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_bc_dump.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_bc_finalize.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_bc_fmt_def.inc 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_bc_parser.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_context.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_core.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_dce_cleanup.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_def_use.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_dump.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_expr.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_expr.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_gcm.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_gvn.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_if_conversion.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_ir.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_ir.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_liveness.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_pass.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_pass.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_peephole.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_psi_ops.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_public.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_ra_checker.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_ra_coalesce.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_ra_init.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_sched.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_sched.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_shader.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_shader.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_ssa_builder.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_valtable.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/eg_asm.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/eg_sq.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/evergreen_compute.c 1.1-1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/evergreen_state.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/evergreend.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/r600_hw_context.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/r600_asm.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/r600_asm.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/r600_blit.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/r600_isa.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/r600_formats.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/r600_opcodes.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/r600_pipe.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/r600_pipe.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/r600_public.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/r600_uvd.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/r600_llvm.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/r600_shader.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/r600_shader.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/r600_sq.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/r600_state.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/r600_state_common.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/r600d.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/r700_asm.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/r700_sq.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/r600/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/compute_memory_pool.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/compute_memory_pool.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/evergreen_compute.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/evergreen_compute_internal.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/evergreen_hw_context.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/r600_isa.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/r600/r600_llvm.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/rbug/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/rbug/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/rbug/rbug_context.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/rbug/rbug_context.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/rbug/rbug_core.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/rbug/rbug_objects.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/rbug/rbug_screen.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/drivers/rbug/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/rbug/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/rbug/README 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/LLVM_REVISION.txt 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/cayman_msaa.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/r600_buffer_common.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/r600_cs.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/r600_pipe_common.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/r600_pipe_common.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/r600_query.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/r600_streamout.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/r600_texture.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/r600d_common.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/radeon_elf_util.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/radeon_elf_util.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/radeon_llvm.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/radeon_uvd.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/radeon_llvm_emit.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/radeon_llvm_emit.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/radeon_llvm_util.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/radeon_llvm_util.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/radeon_uvd.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/radeon_vce.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/radeon_vce.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/radeon_vce_40_2_2.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/radeon_video.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeon/radeon_video.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/si_blit.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/si_commands.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/si_compute.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/si_descriptors.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/si_dma.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/si_hw_context.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/si_pipe.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/si_pipe.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/si_pm4.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/si_pm4.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/si_public.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/si_shader.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/si_shader.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/si_state.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/si_state.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/si_state_draw.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/si_uvd.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/sid.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_bufmgr.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_bufmgr.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_cl.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_cl.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_context.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_context.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_draw.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_drm.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_emit.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_opt_algebraic.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_opt_copy_propagation.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_opt_dead_code.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_packet.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_program.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_qir.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_qir.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_qpu.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_qpu.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_qpu_defines.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_qpu_disasm.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_qpu_emit.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_qpu_validate.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_resource.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_resource.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_screen.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_screen.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_simulator.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_simulator_validate.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_simulator_validate.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_simulator_validate_shaders.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/drivers/vc4/vc4_state.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/include/pipe/p_shader_tokens.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/include/pipe/p_compiler.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/include/pipe/p_config.h upto 1.2
external/mit/MesaLib/dist/src/gallium/include/pipe/p_context.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/include/pipe/p_defines.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/include/pipe/p_format.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/include/pipe/p_screen.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/include/pipe/p_state.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/include/pipe/p_video_codec.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/include/pipe/p_video_enums.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/include/pipe/p_video_state.h 1.1-1.3
external/mit/MesaLib/dist/src/gallium/include/state_tracker/drisw_api.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/include/state_tracker/drm_driver.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/include/state_tracker/st_api.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/include/state_tracker/sw_winsys.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/include/state_tracker/xlibsw_api.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/include/state_tracker/vdpau_interop.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/dri/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/dri/SConscript upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/dri/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/dri/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/dri/dri2.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/dri/dri2_buffer.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/dri/dri_context.c 1.1-1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/dri/dri_context.h 1.1-1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/dri/dri_drawable.c 1.1-1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/dri/dri_drawable.h 1.1-1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/dri/dri_query_renderer.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/dri/dri_query_renderer.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/dri/dri_screen.c 1.1-1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/dri/dri_screen.h 1.1-1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/dri/drisw.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/common/egl_g3d_image.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/common/egl_g3d.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/common/egl_g3d.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/common/native_modeset.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/common/egl_g3d_image.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/common/native.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/common/native_buffer.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/common/native_wayland_bufmgr.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/common/egl_g3d_api.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/common/egl_g3d_api.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/common/egl_g3d_loader.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/common/egl_g3d_st.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/common/egl_g3d_st.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/common/egl_g3d_sync.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/common/egl_g3d_sync.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/common/native_helper.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/common/native_helper.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/common/native_wayland_drm_bufmgr.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/common/native_wayland_drm_bufmgr.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/x11/native_dri2.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/x11/glxinit.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/x11/native_x11.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/x11/native_x11.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/x11/native_ximage.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/x11/x11_screen.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/x11/x11_screen.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/drm/modeset.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/drm/native_drm.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/drm/native_drm.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/fbdev/native_fbdev.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/gdi/native_gdi.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/wayland/native_drm.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/wayland/native_shm.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/wayland/native_wayland.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/wayland/native_wayland.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/android/native_android.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/egl/null/native_null.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/glx/xlib/glx_getproc.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/glx/xlib/SConscript upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/glx/xlib/glx_api.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/glx/xlib/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/glx/xlib/glx_usefont.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/glx/xlib/xm_api.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/glx/xlib/xm_api.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/glx/xlib/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/glx/xlib/xm_public.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/glx/xlib/xm_st.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/glx/xlib/xm_st.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/glx/xlib/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/README 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/matrix.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/api_context.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/api_filters.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/api_images.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/api_masks.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/api_misc.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/image.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/mask.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/paint.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/path.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/shaders_cache.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/polygon.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/renderer.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/shader.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/text.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/stroker.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/vg_context.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/vg_context.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/vg_translate.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/api.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/api.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/handle.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/vg_api.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/vg_manager.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/vg_manager.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/vega/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_context.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/SConscript upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_context.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_device.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_device.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_ext_extensionsstring.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_ext_swapinterval.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_framebuffer.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_framebuffer.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_getprocaddress.c upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_icd.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_pixelformat.c upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_pixelformat.h upto 1.1.1.3
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_tls.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_tls.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_wgl.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_wgl.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_winsys.h upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_st.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_st.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/opengl32.def 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/opengl32.mingw.def 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/wgl/stw_ext_context.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/gbm/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/gbm/gbm_drm.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/gbm/gbm_gallium_drmint.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/state_trackers/gbm/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/gbm/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/api/context.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/api/device.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/api/dispatch.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/api/dispatch.hpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/api/event.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/api/kernel.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/api/memory.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/api/platform.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/api/program.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/api/queue.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/api/sampler.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/api/transfer.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/api/util.hpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/Doxyfile 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/llvm/invocation.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/tgsi/compiler.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/util/adaptor.hpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/util/algebra.hpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/util/algorithm.hpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/util/compat.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/util/compat.hpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/util/factor.hpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/util/functional.hpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/util/lazy.hpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/util/pointer.hpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/util/range.hpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/clover/util/tuple.hpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/omx/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/omx/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/omx/entrypoint.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/omx/entrypoint.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/omx/vid_dec.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/omx/vid_dec.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/omx/vid_dec_h264.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/omx/vid_dec_mpeg12.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/omx/vid_enc.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/omx/vid_enc.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/osmesa/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/osmesa/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/osmesa/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/osmesa/osmesa.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/vdpau/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/vdpau/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/vdpau/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/vdpau/bitmap.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/vdpau/decode.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/vdpau/device.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/vdpau/ftab.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/vdpau/htab.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/vdpau/mixer.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/vdpau/output.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/vdpau/preemption.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/vdpau/presentation.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/vdpau/query.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/vdpau/surface.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/vdpau/vdpau_private.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xa/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xa/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xa/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xa/README 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xa/xa-indent 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xa/xa_composite.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xa/xa_composite.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xa/xa_context.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xa/xa_context.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xa/xa_priv.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xa/xa_renderer.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xa/xa_tgsi.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xa/xa_tracker.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xa/xa_tracker.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xa/xa_yuv.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xvmc/tests/test_blocks.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xvmc/tests/test_context.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xvmc/tests/test_rendering.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xvmc/tests/test_subpicture.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xvmc/tests/test_surface.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xvmc/tests/testlib.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xvmc/tests/testlib.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xvmc/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xvmc/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xvmc/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xvmc/attributes.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xvmc/block.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xvmc/context.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xvmc/subpicture.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xvmc/surface.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/state_trackers/xvmc/xvmc_private.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/freedreno/drm/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/freedreno/drm/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/freedreno/drm/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/freedreno/drm/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/freedreno/drm/freedreno_drm_public.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/freedreno/drm/freedreno_drm_winsys.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/intel/drm/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/intel/drm/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/intel/drm/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/intel/drm/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/intel/drm/intel_drm_winsys.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/intel/intel_winsys.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/vc4/drm/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/vc4/drm/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/vc4/drm/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/vc4/drm/vc4_drm_public.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/vc4/drm/vc4_drm_winsys.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/i915/drm/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/i915/drm/i915_drm_batchbuffer.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/i915/drm/i915_drm_buffer.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/i915/drm/i915_drm_winsys.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/i915/drm/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/i915/drm/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/i915/drm/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/i915/sw/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/i915/sw/i915_sw_batchbuffer.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/i915/sw/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/nouveau/drm/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/nouveau/drm/nouveau_drm_winsys.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/nouveau/drm/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/nouveau/drm/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/nouveau/drm/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/radeon/drm/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/radeon/drm/radeon_drm_bo.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/radeon/drm/radeon_drm_bo.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/radeon/drm/radeon_drm_cs.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/radeon/drm/radeon_drm_cs.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/radeon/drm/radeon_drm_public.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/radeon/drm/radeon_drm_winsys.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/radeon/drm/radeon_winsys.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/radeon/drm/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/radeon/drm/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/radeon/drm/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/radeon/drm/radeon_drm_cs_dump.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/radeon/tools/radeon_ctx.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/vmw_buffer.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/vmw_buffer.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/vmw_context.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/vmw_context.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/vmw_fence.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/vmw_fence.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/vmw_screen.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/vmw_screen.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/vmw_screen_dri.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/vmw_screen_pools.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/vmw_screen_svga.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/vmw_surface.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/vmw_surface.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/vmwgfx_drm.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/pb_buffer_simple_fenced.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/vmw_shader.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/svga/drm/vmw_shader.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/dri/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/dri/dri_sw_winsys.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/sw/dri/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/gdi/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/sw/gdi/gdi_sw_winsys.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/sw/android/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/android/android_sw_winsys.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/android/android_sw_winsys.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/fbdev/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/fbdev/fbdev_sw_winsys.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/sw/fbdev/fbdev_sw_winsys.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/sw/fbdev/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/null/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/null/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/sw/null/null_sw_winsys.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/sw/null/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/wayland/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/wayland/wayland_sw_winsys.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/sw/wayland/wayland_sw_winsys.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/sw/wayland/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/wrapper/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/wrapper/wrapper_sw_winsys.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/sw/wrapper/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/xlib/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/xlib/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/winsys/sw/xlib/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/xlib/xlib_sw_winsys.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/hgl/SConscript 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/hgl/bitmap_wrapper.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/hgl/bitmap_wrapper.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/hgl/hgl_sw_winsys.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/hgl/hgl_sw_winsys.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/kms-dri/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/kms-dri/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/kms-dri/SConscript 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/dri/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/dri/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/dri/SConscript 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/dri/dri.sym 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/dri/target.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/omx/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/omx/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/omx/omx.sym 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/omx/target.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/dri-vdpau.dyn 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/haiku-softpipe/GalliumContext.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/haiku-softpipe/GalliumContext.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/haiku-softpipe/GalliumFramebuffer.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/haiku-softpipe/GalliumFramebuffer.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/haiku-softpipe/SConscript 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/haiku-softpipe/SoftwareRenderer.cpp 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/haiku-softpipe/SoftwareRenderer.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/haiku-softpipe/SoftwareRenderer.rdef 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/opencl/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/opencl/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/opencl/mesa.icd 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/opencl/opencl.sym 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/egl-static/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/egl-static/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/targets/egl-static/egl.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/targets/egl-static/egl_pipe.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/targets/egl-static/egl_pipe.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/targets/egl-static/egl_st.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/targets/egl-static/egl_st.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/targets/egl-static/st_GL.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/targets/egl-static/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/egl-static/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/egl-static/egl.sym 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/gbm/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/gbm/gbm.sym 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/gbm/target.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/gbm/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/gbm/gallium-gbm-symbols-check 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/graw-gdi/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/targets/graw-null/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/targets/graw-null/graw_util.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/targets/graw-xlib/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/targets/graw-xlib/graw_xlib.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/targets/libgl-gdi/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/targets/libgl-gdi/libgl_gdi.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/targets/libgl-xlib/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/libgl-xlib/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/targets/libgl-xlib/xlib.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/targets/libgl-xlib/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/libgl-xlib/libgl-xlib.sym 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/osmesa/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/osmesa/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/osmesa/osmesa.pc.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/osmesa/osmesa.sym 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/osmesa/target.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/pipe-loader/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/pipe-loader/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/pipe-loader/pipe.sym 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/pipe-loader/pipe_i915.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/pipe-loader/pipe_msm.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/pipe-loader/pipe_nouveau.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/pipe-loader/pipe_r300.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/pipe-loader/pipe_r600.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/pipe-loader/pipe_radeonsi.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/pipe-loader/pipe_swrast.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/pipe-loader/pipe_vmwgfx.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/vdpau/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/vdpau/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/vdpau/target.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/vdpau/vdpau.sym 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/xa/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/xa/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/xa/target.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/xa/xa.sym 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/xa/xatracker.pc.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/xvmc/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/xvmc/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/xvmc/target.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/targets/xvmc/xvmc.sym 1.1.1.1
external/mit/MesaLib/dist/src/gallium/SConscript upto 1.1.1.4
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-abs.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-add.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-cb-1d.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-cb-2d.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-dp3.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-dp4.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-dst.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-ex2.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-face.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-flr.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-frc.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-kil.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-lg2.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-lit.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-lrp.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-mad-immx.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-mad.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-max.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-min.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-mov.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-mul.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-rcp.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-rsq.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-sge.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-slt.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-srcmod-abs.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-srcmod-absneg.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-srcmod-neg.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-srcmod-swz.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-sub.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-tempx.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-ucmp.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fragment-shader/frag-xpd.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tests/graw/clear.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tests/graw/fs-test.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tests/graw/gs-test.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tests/graw/quad-sample.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tests/graw/quad-tex.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tests/graw/shader-leak.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tests/graw/tri-gs.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tests/graw/tri-instanced.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tests/graw/tri.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tests/graw/vs-test.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tests/graw/disasm.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fs-fragcoord.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fs-frontface.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/fs-write-z.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/graw_util.h 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/occlusion-query.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/tex-srgb.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/tex-swizzle.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/tgsi_dump.gdb 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/tri-large.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/geometry-shader/add-mix.txt 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/geometry-shader/add.txt 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/geometry-shader/line.txt 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/geometry-shader/mov-cb-2d.txt 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/geometry-shader/mov.txt 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/geometry-shader/multi-line.txt 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-abs.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-add.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-arl.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-arr.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-cb-1d.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-cb-2d.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-dp3.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-dp4.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-dst.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-ex2.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-flr.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-frc.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-imul_hi.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-lg2.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-lit.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-lrp.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-mad.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-max.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-min.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-mov.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-mul.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-rcp.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-rsq.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-sge.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-slt.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-srcmod-abs.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-srcmod-absneg.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-srcmod-neg.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-srcmod-swz.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-sub.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-uadd.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-umul_hi.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-xpd.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/trivial/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/trivial/quad-tex.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tests/trivial/tri.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tests/trivial/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/trivial/compute.c 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/unit/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/unit/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tests/unit/pipe_barrier_test.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tests/unit/translate_test.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tests/unit/u_format_compatible_test.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tests/unit/u_format_test.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tests/unit/u_half_test.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tests/unit/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tests/python/tests/regress/fragment-shader/frag-cmp.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tools/trace/dump.py upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tools/trace/format.py upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tools/trace/model.py upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tools/trace/parse.py upto 1.1.1.2
external/mit/MesaLib/dist/src/gallium/tools/trace/README.txt 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tools/trace/TODO.txt 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tools/trace/diff_state.py 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tools/trace/dump_state.py 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tools/trace/tracediff.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/tools/addr2line.sh 1.1.1.1
external/mit/MesaLib/dist/src/gallium/Android.common.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/gallium/Automake.inc 1.1.1.1
external/mit/MesaLib/dist/src/gallium/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gallium/README.portability 1.1.1.1
external/mit/MesaLib/dist/src/glsl/TODO         1.1.1.1
external/mit/MesaLib/dist/src/glsl/Makefile.am  1.1.1.1
external/mit/MesaLib/dist/src/glsl/builtin_functions.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/SConscript   upto 1.1.1.3
external/mit/MesaLib/dist/src/glsl/README       upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ast.h        upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ast_function.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ast_to_hir.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ast_type.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/builtin_type_macros.h 1.1.1.1
external/mit/MesaLib/dist/src/glsl/ir_builder.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/ir_builder.h 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glsl_lexer.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/glsl_lexer.ll upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/glsl_parser.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/glsl_parser.h upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/glsl_parser.yy upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/glsl_parser_extras.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/glsl_parser_extras.h upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/glsl_symbol_table.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/glsl_symbol_table.h upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/glsl_types.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/glsl_types.h upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/hir_field_selection.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir.cpp       upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir.h         1.3
external/mit/MesaLib/dist/src/glsl/ir_basic_block.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir_clone.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir_constant_expression.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir_expression_flattening.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir_function.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir_function_can_inline.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir_function_detect_recursion.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir_hierarchical_visitor.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir_hierarchical_visitor.h upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir_hv_accept.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir_import_prototypes.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir_optimization.h upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir_print_visitor.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir_print_visitor.h upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir_reader.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir_rvalue_visitor.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir_rvalue_visitor.h upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir_set_program_inouts.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir_validate.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/link_varyings.h 1.1.1.1
external/mit/MesaLib/dist/src/glsl/ir_visitor.h upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir_variable_refcount.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/ir_variable_refcount.h upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/link_functions.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/linker.cpp   upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/linker.h     upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/list.h       upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/loop_analysis.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/loop_analysis.h upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/loop_controls.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/loop_unroll.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/lower_discard.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/lower_if_to_cond_assign.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/lower_instructions.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/lower_jumps.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/lower_mat_op_to_vec.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/lower_texture_projection.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/lower_vec_index_to_swizzle.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/lower_variable_index_to_cond_assign.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/lower_vec_index_to_cond_assign.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/lower_vector.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/main.cpp     upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/opt_algebraic.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/opt_constant_folding.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/opt_constant_propagation.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/opt_constant_variable.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/opt_copy_propagation.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/opt_copy_propagation_elements.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/opt_dead_code.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/opt_dead_code_local.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/opt_dead_functions.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/opt_flip_matrices.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/program.h    upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/opt_function_inlining.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/opt_if_simplification.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/opt_noop_swizzle.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/opt_redundant_jumps.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/opt_structure_splitting.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/opt_swizzle_swizzle.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/opt_tree_grafting.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/standalone_scaffolding.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/s_expression.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/strtod.c     upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/strtod.h     upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/glcpp/glcpp-lex.c upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/glcpp/README upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/glcpp/tests/000-content-with-spaces.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/000-content-with-spaces.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/001-define.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/001-define.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/002-define-chain.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/002-define-chain.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/003-define-chain-reverse.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/003-define-chain-reverse.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/004-define-recursive.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/004-define-recursive.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/005-define-composite-chain.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/005-define-composite-chain.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/006-define-composite-chain-reverse.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/006-define-composite-chain-reverse.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/007-define-composite-recursive.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/007-define-composite-recursive.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/008-define-empty.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/008-define-empty.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/009-undef.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/009-undef.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/010-undef-re-define.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/010-undef-re-define.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/011-define-func-empty.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/011-define-func-empty.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/012-define-func-no-args.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/012-define-func-no-args.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/013-define-func-1-arg-unused.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/013-define-func-1-arg-unused.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/014-define-func-2-arg-unused.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/014-define-func-2-arg-unused.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/015-define-object-with-parens.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/015-define-object-with-parens.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/016-define-func-1-arg.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/016-define-func-1-arg.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/017-define-func-2-args.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/017-define-func-2-args.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/019-define-func-1-arg-multi.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/018-define-func-macro-as-parameter.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/018-define-func-macro-as-parameter.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/019-define-func-1-arg-multi.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/020-define-func-2-arg-multi.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/020-define-func-2-arg-multi.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/021-define-func-compose.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/021-define-func-compose.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/022-define-func-arg-with-parens.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/022-define-func-arg-with-parens.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/023-define-extra-whitespace.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/023-define-extra-whitespace.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/024-define-chain-to-self-recursion.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/024-define-chain-to-self-recursion.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/025-func-macro-as-non-macro.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/025-func-macro-as-non-macro.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/026-define-func-extra-newlines.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/026-define-func-extra-newlines.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/027-define-chain-obj-to-func.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/027-define-chain-obj-to-func.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/028-define-chain-obj-to-non-func.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/028-define-chain-obj-to-non-func.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/032-define-func-self-recurse.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/029-define-chain-obj-to-func-with-args.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/029-define-chain-obj-to-func-with-args.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/030-define-chain-obj-to-func-compose.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/030-define-chain-obj-to-func-compose.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/031-define-chain-func-to-func-compose.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/031-define-chain-func-to-func-compose.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/032-define-func-self-recurse.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/033-define-func-self-compose.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/033-define-func-self-compose.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/034-define-func-self-compose-non-func.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/034-define-func-self-compose-non-func.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/035-define-func-self-compose-non-func-multi-token-argument.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/035-define-func-self-compose-non-func-multi-token-argument.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/036-define-func-non-macro-multi-token-argument.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/036-define-func-non-macro-multi-token-argument.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/037-finalize-unexpanded-macro.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/037-finalize-unexpanded-macro.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/038-func-arg-with-commas.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/038-func-arg-with-commas.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/039-func-arg-obj-macro-with-comma.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/039-func-arg-obj-macro-with-comma.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/040-token-pasting.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/040-token-pasting.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/041-if-0.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/041-if-0.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/042-if-1.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/042-if-1.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/043-if-0-else.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/043-if-0-else.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/044-if-1-else.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/044-if-1-else.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/045-if-0-elif.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/045-if-0-elif.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/046-if-1-elsif.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/046-if-1-elsif.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/047-if-elif-else.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/047-if-elif-else.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/048-if-nested.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/048-if-nested.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/049-if-expression-precedence.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/049-if-expression-precedence.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/050-if-defined.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/050-if-defined.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/051-if-relational.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/051-if-relational.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/052-if-bitwise.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/052-if-bitwise.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/053-if-divide-and-shift.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/053-if-divide-and-shift.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/063-comments.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/054-if-with-macros.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/054-if-with-macros.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/055-define-chain-obj-to-func-parens-in-text.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/055-define-chain-obj-to-func-parens-in-text.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/056-macro-argument-with-comma.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/056-macro-argument-with-comma.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/057-empty-arguments.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/057-empty-arguments.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/058-token-pasting-empty-arguments.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/058-token-pasting-empty-arguments.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/059-token-pasting-integer.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/glcpp-test 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/059-token-pasting-integer.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/060-left-paren-in-macro-right-paren-in-text.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/060-left-paren-in-macro-right-paren-in-text.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/061-define-chain-obj-to-func-multi.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/061-define-chain-obj-to-func-multi.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/062-if-0-skips-garbage.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/062-if-0-skips-garbage.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/063-comments.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/064-version.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/064-version.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/065-if-defined-parens.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/066-if-nospace-expression.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/065-if-defined-parens.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/066-if-nospace-expression.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/067-nested-ifdef-ifndef.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/067-nested-ifdef-ifndef.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/068-accidental-pasting.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/068-accidental-pasting.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/069-repeated-argument.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/069-repeated-argument.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/070-undefined-macro-in-expression.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/070-undefined-macro-in-expression.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/071-punctuator.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/071-punctuator.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/072-token-pasting-same-line.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/072-token-pasting-same-line.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/073-if-in-ifdef.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/073-if-in-ifdef.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/074-elif-undef.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/074-elif-undef.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/075-elif-elif-undef.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/075-elif-elif-undef.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/076-elif-undef-nested.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/076-elif-undef-nested.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/077-else-without-if.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/077-else-without-if.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/078-elif-without-if.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/078-elif-without-if.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/079-endif-without-if.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/079-endif-without-if.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/080-if-without-expression.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/080-if-without-expression.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/081-elif-without-expression.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/081-elif-without-expression.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/082-invalid-paste.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/082-invalid-paste.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/083-unterminated-if.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/083-unterminated-if.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/084-unbalanced-parentheses.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/084-unbalanced-parentheses.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/085-incorrect-argument-count.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/085-incorrect-argument-count.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/086-reserved-macro-names.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/086-reserved-macro-names.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/087-if-comments.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/087-if-comments.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/088-redefine-macro-legitimate.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/088-redefine-macro-legitimate.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/089-redefine-macro-error.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/089-redefine-macro-error.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/090-hash-error.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/090-hash-error.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/091-hash-line.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/091-hash-line.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/092-redefine-macro-error-2.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/092-redefine-macro-error-2.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/093-divide-by-zero.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/093-divide-by-zero.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/094-divide-by-zero-short-circuit.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/094-divide-by-zero-short-circuit.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/095-recursive-define.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/095-recursive-define.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/096-paste-twice.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/096-paste-twice.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/097-paste-with-non-function-macro.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/097-paste-with-non-function-macro.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/098-elif-undefined.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/098-elif-undefined.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/099-c99-example.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/099-c99-example.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/100-macro-with-colon.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/100-macro-with-colon.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/101-macros-used-twice.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/101-macros-used-twice.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/102-garbage-after-endif.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/102-garbage-after-endif.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/103-garbage-after-else-0.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/103-garbage-after-else-0.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/104-hash-line-followed-by-code.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/104-hash-line-followed-by-code.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/105-multiline-hash-line.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/105-multiline-hash-line.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/106-multiline-hash-if.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/106-multiline-hash-if.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/107-multiline-hash-elif.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/107-multiline-hash-elif.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/108-no-space-after-hash-version.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/108-no-space-after-hash-version.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/109-no-space-after-hash-line.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/109-no-space-after-hash-line.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/113-line-and-file-macros.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/110-no-space-digits-after-hash-elif.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/110-no-space-digits-after-hash-elif.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/111-no-space-operator-after-hash-if.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/111-no-space-operator-after-hash-if.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/112-no-space-operator-after-hash-elif.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/112-no-space-operator-after-hash-elif.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/113-line-and-file-macros.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/114-paste-integer-tokens.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/114-paste-integer-tokens.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/115-line-continuations.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/118-comment-becomes-space.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/115-line-continuations.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/116-disable-line-continuations.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/116-disable-line-continuations.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/117-line-continuation-and-non-continuation-backslash.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/117-line-continuation-and-non-continuation-backslash.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/118-comment-becomes-space.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/119-elif-after-else.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/119-elif-after-else.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/120-undef-builtin.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/120-undef-builtin.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/121-comment-bug-72686.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/121-comment-bug-72686.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/122-redefine-whitespace.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/122-redefine-whitespace.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/123-garbage-after-else-1.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/123-garbage-after-else-1.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/124-preprocessing-numbers.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/124-preprocessing-numbers.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/125-es-short-circuit-undefined.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/125-es-short-circuit-undefined.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/126-garbage-after-directive.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/126-garbage-after-directive.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/127-pragma-empty.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/127-pragma-empty.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/128-space-before-hash.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/128-space-before-hash.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/129-define-non-identifier.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/129-define-non-identifier.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/130-define-comment.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/130-define-comment.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/131-eof-without-newline.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/131-eof-without-newline.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/132-eof-without-newline-define.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/132-eof-without-newline-define.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/133-eof-without-newline-comment.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/133-eof-without-newline-comment.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/134-hash-comment-directive.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/134-hash-comment-directive.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/135-duplicate-parameter.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/135-duplicate-parameter.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/136-plus-plus-and-minus-minus.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/136-plus-plus-and-minus-minus.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/137-expand-macro-after-period.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/137-expand-macro-after-period.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/138-multi-line-comment-in-if-0.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/138-multi-line-comment-in-if-0.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/139-define-without-macro-name.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/139-define-without-macro-name.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/140-null-directive.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/140-null-directive.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/141-pragma-and-__LINE__.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/141-pragma-and-__LINE__.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/142-defined-within-macro.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/142-defined-within-macro.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/143-multiple-else.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/143-multiple-else.c.expected 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/tests/glcpp-test-cr-lf 1.1.1.1
external/mit/MesaLib/dist/src/glsl/glcpp/glcpp-lex.l upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/glcpp/glcpp-parse.c upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/glcpp/glcpp-parse.h upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/glcpp/glcpp-parse.y upto 1.2
external/mit/MesaLib/dist/src/glsl/glcpp/glcpp.c upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/glcpp/glcpp.h upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/glcpp/pp.c   upto 1.1.1.2
external/mit/MesaLib/dist/src/glsl/Android.gen.mk 1.1.1.1
external/mit/MesaLib/dist/src/glsl/Android.mk   1.1.1.1
external/mit/MesaLib/dist/src/glsl/Makefile.in  1.1.1.1
external/mit/MesaLib/dist/src/glsl/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/glsl/ast_array_index.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/builtin_types.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/builtin_variables.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/ir_equals.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/ir_uniform.h 1.1.1.1
external/mit/MesaLib/dist/src/glsl/link_atomics.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/link_interface_blocks.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/link_uniform_block_active_visitor.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/link_uniform_block_active_visitor.h 1.1.1.1
external/mit/MesaLib/dist/src/glsl/link_uniform_blocks.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/link_uniform_initializers.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/link_uniforms.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/link_varyings.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/lower_clip_distance.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/lower_discard_flow.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/lower_named_interface_blocks.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/lower_offset_array.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/lower_output_reads.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/lower_packed_varyings.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/lower_packing_builtins.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/lower_ubo_reference.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/lower_vector_insert.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/lower_vertex_id.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/opt_array_splitting.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/opt_cse.cpp  1.1.1.1
external/mit/MesaLib/dist/src/glsl/opt_dead_builtin_varyings.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/opt_flatten_nested_if_blocks.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/opt_rebalance_tree.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/opt_vectorize.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/standalone_scaffolding.h 1.1.1.1
external/mit/MesaLib/dist/src/glsl/test.cpp     1.1.1.1
external/mit/MesaLib/dist/src/glsl/test_optpass.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/test_optpass.h 1.1.1.1
external/mit/MesaLib/dist/src/glsl/tests/lower_jumps/create_test_cases.py 1.1.1.1
external/mit/MesaLib/dist/src/glsl/tests/builtin_variable_test.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/tests/common.c 1.1.1.1
external/mit/MesaLib/dist/src/glsl/tests/compare_ir 1.1.1.1
external/mit/MesaLib/dist/src/glsl/tests/copy_constant_to_storage_tests.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/tests/general_ir_test.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/tests/invalidate_locations_test.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/tests/optimization-test 1.1.1.1
external/mit/MesaLib/dist/src/glsl/tests/sampler_types_test.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/tests/set_uniform_initializer_tests.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/tests/sexps.py 1.1.1.1
external/mit/MesaLib/dist/src/glsl/tests/uniform_initializer_utils.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glsl/tests/uniform_initializer_utils.h 1.1.1.1
external/mit/MesaLib/dist/src/glsl/tests/varyings_test.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glx/clientattrib.c upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/tests/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/glx/tests/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/glx/tests/clientinfo_unittest.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glx/tests/create_context_unittest.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glx/tests/enum_sizes.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glx/tests/fake_glx_screen.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glx/tests/fake_glx_screen.h 1.1.1.1
external/mit/MesaLib/dist/src/glx/tests/indirect_api.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glx/tests/mock_xdisplay.h 1.1.1.1
external/mit/MesaLib/dist/src/glx/tests/query_renderer_implementation_unittest.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glx/tests/query_renderer_unittest.cpp 1.1.1.1
external/mit/MesaLib/dist/src/glx/XF86dri.c     1.4
external/mit/MesaLib/dist/src/glx/dri_common.c  upto 1.2
external/mit/MesaLib/dist/src/glx/compsize.c    upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/dri2.c        upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/dri2.h        upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/dri2_glx.c    upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/apple/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/glx/apple/apple_glapi.c upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/apple/apple_glx.c upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/apple/apple_glx.h upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/apple/apple_glx_context.c upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/apple/apple_glx_drawable.c upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/apple/apple_glx_surface.c upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/apple/apple_visual.c upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/apple/apple_xgl_api.h upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/apple/apple_xgl_api_read.c upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/apple/apple_xgl_api_stereo.c upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/apple/apple_xgl_api_viewport.c upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/apple/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/glx/apple/RELEASE_NOTES 1.1.1.1
external/mit/MesaLib/dist/src/glx/apple/TODO    1.1.1.1
external/mit/MesaLib/dist/src/glx/apple/apple_glx_log.c 1.1.1.1
external/mit/MesaLib/dist/src/glx/apple/apple_glx_log.h 1.1.1.1
external/mit/MesaLib/dist/src/glx/glx_error.h   1.1.1.1
external/mit/MesaLib/dist/src/glx/dri_common.h  upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/dri_glx.c     upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/drisw_glx.c   upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/indirect_transpose_matrix.c upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/glxconfig.c   upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/glx_pbuffer.c upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/glx_query.c   upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/glxclient.h   upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/glxcmds.c     upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/glxcurrent.c  upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/glxext.c      upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/glxextensions.c upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/glxextensions.h upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/query_renderer.c 1.1.1.1
external/mit/MesaLib/dist/src/glx/indirect_texture_compression.c upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/indirect_vertex_array.c upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/indirect_vertex_program.c upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/indirect_window_pos.c upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/xf86dristr.h  upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/render2.c     upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/renderpix.c   upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/single2.c     upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/singlepix.c   upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/vertarr.c     upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/xf86dri.h     upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/xfont.c       upto 1.1.1.3
external/mit/MesaLib/dist/src/glx/applegl_glx.c upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/indirect_glx.c upto 1.1.1.2
external/mit/MesaLib/dist/src/glx/Makefile.am   1.1.1.1
external/mit/MesaLib/dist/src/glx/Makefile.in   1.1.1.1
external/mit/MesaLib/dist/src/glx/SConscript    1.1.1.1
external/mit/MesaLib/dist/src/glx/clientinfo.c  1.1.1.1
external/mit/MesaLib/dist/src/glx/create_context.c 1.1.1.1
external/mit/MesaLib/dist/src/glx/dri2_priv.h   1.1.1.1
external/mit/MesaLib/dist/src/glx/dri2_query_renderer.c 1.1.1.1
external/mit/MesaLib/dist/src/glx/dri3_glx.c    1.1.1.1
external/mit/MesaLib/dist/src/glx/dri3_priv.h   1.1.1.1
external/mit/MesaLib/dist/src/glx/drisw_priv.h  1.1.1.1
external/mit/MesaLib/dist/src/glx/glx_error.c   1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/common/driverfuncs.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/common/meta_blit.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/common/driverfuncs.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/common/meta.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/common/meta.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/common/meta_copy_image.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/common/meta_generate_mipmap.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/xmlpool/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/xmlpool/de.po upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/xmlpool/es.po upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/xmlpool/fr.po upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/xmlpool/nl.po upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/xmlpool/sv.po upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/xmlpool/t_options.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/xmlpool/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/xmlpool/SConscript 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/xmlpool/ca.po 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/xmlpool/gen_xmlpool.py 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/drirc 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/dri_test.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/dri_util.c upto 1.1.1.7
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/dri_util.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/megadriver_stub.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/utils.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/utils.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/xmlconfig.c 1.6-1.7
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/xmlconfig.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/xmlpool.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/common/SConscript 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/i830_context.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/i830_context.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/i830_reg.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/i830_state.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/i830_texblend.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/i830_texstate.c 1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/i830_vtbl.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/i915_context.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/i915_context.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_blit.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/i915_debug.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/i915_debug_fp.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/i915_fragprog.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/i915_program.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/i915_program.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/i915_reg.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/i915_state.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/i915_texstate.c 1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/i915_tex_layout.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/i915_vtbl.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_render.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_syncobj.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_tris.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_tris.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_batchbuffer.c 1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_blit.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_buffer_objects.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_buffers.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_clear.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_context.c 1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_fbo.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_extensions.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_mipmap_tree.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_fbo.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_mipmap_tree.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_pixel.c 1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_pixel_bitmap.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_regions.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_pixel_copy.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_pixel_draw.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_pixel_read.c 1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_screen.c 1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_tex.h 1.1-1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_state.c 1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_tex.c 1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_tex_copy.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_tex_layout.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_tex_image.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_tex_layout.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_tex_subimage.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_tex_validate.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_batchbuffer.h 1.1-1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_buffer_objects.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_buffers.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_chipset.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_clear.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_context.h 1.1-1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_extensions.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_pixel.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_reg.h 1.1-1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_regions.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_screen.h 1.1-1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i915/intel_tex_obj.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_clip_line.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_cc.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_clip.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_clip.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_clip_point.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_clip_state.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_clip_tri.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_clip_unfilled.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_clip_util.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_context.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_context.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_curbe.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_defines.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_disasm.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_draw.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_draw.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_draw_upload.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_eu.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_eu.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_misc_state.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_eu_emit.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_eu_util.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_gs.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_gs.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_gs_emit.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_gs_state.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_state_batch.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_program.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_queryobj.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_sf.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_sf.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_sf_emit.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_sf_state.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_state.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_vs_surface_state.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_state_cache.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_state_dump.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_inst.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_state_upload.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_structs.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_tex.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_tex_layout.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_urb.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_util.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_util.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_vs.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_vs.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_wm_iz.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen6_blorp.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_vs_state.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen6_blorp.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen6_queryobj.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_wm.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_wm.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen6_depth_state.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen6_multisample_state.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_fs_cse.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen6_sol.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen7_blorp.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen6_surface_state.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_wm_surface_state.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_wm_state.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen6_clip_state.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen6_cc.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen6_sampler_state.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen6_depthstencil.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen6_gs_state.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen7_gs_state.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_fs.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen6_scissor_state.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen6_sf_state.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen6_urb.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen6_viewport_state.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen6_vs_state.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen6_wm_state.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_syncobj.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_cubemap_normalize.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen8_depth_state.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_fs.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_fs_fp.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_program.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_shader.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_shader.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen7_sol_state.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen7_disable.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen7_misc_state.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen8_blend_state.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen7_sf_state.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen7_urb.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen7_viewport_state.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen7_vs_state.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen7_wm_state.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_batchbuffer.c 1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_blit.c 1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_buffer_objects.c 1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_buffers.c 1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_copy_image.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_fbo.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_image.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_extensions.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_mipmap_tree.h 1.1-1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_fbo.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_mipmap_tree.c 1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_pixel.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_pixel_bitmap.c 1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_pixel_copy.c 1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_pixel_draw.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_pixel_read.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_resolve_map.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_screen.c 1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_tex.h 1.1-1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_state.c 1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_tex.c 1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_tex_copy.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_tex_obj.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_tex_image.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_upload.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_tex_subimage.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_tex_validate.c 1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_binding_tables.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_blorp.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_blorp.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_blorp_blit_eu.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_blorp_blit_eu.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_cfg.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_cfg.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_clear.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_dead_control_flow.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_dead_control_flow.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_device_info.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_device_info.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_eu_compact.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_fs_dead_code_eliminate.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_fs_generator.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_fs_live_variables.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_fs_peephole_predicated_break.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_gs_surface_state.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_interpolation_map.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_lower_texture_gradients.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_lower_unnormalized_offset.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_meta_updownsample.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_meta_util.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_meta_util.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_multisample_state.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_object_purgeable.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_performance_monitor.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_primitive_restart.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_reg.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_reset.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_sampler_state.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_surface_formats.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_vec4.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_vec4.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_vec4_cse.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_vec4_gs.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_vec4_gs.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_vec4_live_variables.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_vec4_live_variables.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_vec4_vp.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/brw_vec4_vs_visitor.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen7_blorp.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen8_disable.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen8_draw_upload.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen8_gs_state.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen8_misc_state.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen8_multisample_state.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen8_ps_state.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen8_sf_state.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen8_sol_state.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen8_surface_state.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen8_viewport_state.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen8_vs_state.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/gen8_wm_depth_stencil.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_asm_annotation.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_asm_annotation.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_batchbuffer.h 1.1-1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_blit.h 1.1-1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_buffer_objects.h 1.1-1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_buffers.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_chipset.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_debug.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_debug.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_pixel.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_reg.h 1.1-1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_resolve_map.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/intel_screen.h 1.1-1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/test_eu_compact.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/test_vec4_copy_propagation.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/test_vec4_register_coalesce.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv10_state_polygon.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_local.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_bufferobj.c 1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_context.c 1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_context.h 1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_driver.c 1.5-1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_driver.h 1.5-1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_fbo.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_render_t.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_screen.c 1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_screen.h 1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_span.c 1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_state.c 1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_surface.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_surface.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_swtnl_t.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_texture.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_texture.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_util.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv04_context.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv04_context.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv04_render.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv04_state_fb.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv04_state_frag.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv04_state_raster.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv04_state_tex.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv04_surface.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv10_context.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv10_render.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv10_state_fb.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv10_state_frag.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv20_state_polygon.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv10_state_raster.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv10_state_tex.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv10_state_tnl.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv20_context.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv20_render.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv20_state_fb.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv20_state_frag.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv20_state_raster.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv20_state_tex.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv20_state_tnl.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_array.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_array.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nouveau_scratch.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/nv_object.xml.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_cmdbuf.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_blit.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_blit.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_fragshader.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_context.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_context.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_maos_arrays.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_ioctl.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_ioctl.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_maos.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_state_init.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_sanity.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_state.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_state.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_swtcl.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_swtcl.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_tcl.c 1.8
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_tcl.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_tex.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_tex.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_texstate.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/r200_vertprog.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/r200/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/server/radeon_reg.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_blit.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_blit.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_fog.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_fog.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_maos_arrays.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_buffer_objects.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_chipset.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_cmdbuf.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_common.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_common.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_common_context.c upto 1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_common_context.h upto 1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_context.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_context.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_debug.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_dma.c upto 1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_dma.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_fbo.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_ioctl.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_ioctl.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_maos.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c 1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_maos_vbtmp.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_maos_verts.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_queryobj.c 1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_queryobj.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_sanity.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_screen.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_screen.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_span.c 1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_span.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_state.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_state.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_state_init.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_swtcl.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_swtcl.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_tcl.c 1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_tcl.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_tex.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_tex.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_tex_copy.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_texstate.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_texture.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_texture.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_pixel_read.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_tile.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/radeon_tile.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/swrast/swrast_priv.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/dri/swrast/swrast.c upto 1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/swrast/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/swrast/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/swrast/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/dri.pc.in upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/dri/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/dri/gen-symbol-redefs.py 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/osmesa/SConscript 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/osmesa/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/osmesa/osmesa.pc.in 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/osmesa/osmesa.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/osmesa/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/windows/gdi/mesa.def upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/windows/gdi/wgl.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/windows/gdi/wmesa.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/windows/gdi/SConscript 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/x11/fakeglx.c upto 1.1.1.7
external/mit/MesaLib/dist/src/mesa/drivers/x11/glxapi.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/x11/glxapi.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/x11/glxheader.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/x11/xfonts.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/x11/xfonts.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/drivers/x11/xm_api.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/x11/xm_buffer.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/x11/xm_dd.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/x11/xm_line.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/x11/xm_tri.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/drivers/x11/xmesa.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/drivers/x11/xmesaP.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/drivers/x11/xmesa_x.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/drivers/x11/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/x11/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/x11/SConscript 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/SConscript 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/haiku/swrast/SConscript 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/haiku/swrast/SoftwareRast.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/haiku/swrast/SoftwareRast.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/drivers/haiku/swrast/SoftwareRast.rdef 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/api_arrayelt.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/accum.c 1.5-1.6
external/mit/MesaLib/dist/src/mesa/main/accum.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/condrender.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/api_arrayelt.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/compute.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/api_exec.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/api_loopback.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/api_loopback.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/blit.c  1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/blit.h  1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/api_validate.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/api_validate.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/arrayobj.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/arrayobj.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/attrib.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/attrib.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/bitset.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/blend.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/blend.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/bufferobj.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/bufferobj.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/buffers.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/buffers.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/clear.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/clear.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/clip.c  upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/clip.h  upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/colormac.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/colortab.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/colortab.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/compiler.h 1.3-1.4
external/mit/MesaLib/dist/src/mesa/main/texcompress_fxt1.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/condrender.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/config.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/context.c 1.3-1.4
external/mit/MesaLib/dist/src/mesa/main/context.h upto 1.1.1.7
external/mit/MesaLib/dist/src/mesa/main/convolve.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/convolve.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/cpuinfo.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/cpuinfo.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/dd.h    upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/debug.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/debug.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/depth.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/depth.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/tests/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/tests/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/tests/dispatch_sanity.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/tests/enum_strings.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/tests/program_state_string.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/tests/stubs.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/errors.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/errors.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/dlist.c upto 1.3
external/mit/MesaLib/dist/src/mesa/main/dlist.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/format_utils.c 1.1-1.2
external/mit/MesaLib/dist/src/mesa/main/dlopen.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/drawpix.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/drawpix.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/enable.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/enable.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/format_utils.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/enums.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/eval.c  upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/eval.h  upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/execmem.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/extensions.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/extensions.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/fbobject.c upto 1.1.1.7
external/mit/MesaLib/dist/src/mesa/main/fbobject.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/feedback.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/feedback.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/ffvertex_prog.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/ffvertex_prog.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/fog.c   upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/fog.h   upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/formats.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/formats.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/framebuffer.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/framebuffer.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/get.c   upto 1.1.1.7
external/mit/MesaLib/dist/src/mesa/main/get.h   upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/getstring.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/glheader.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/hash.c  upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/hash.h  upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/hint.c  upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/hint.h  upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/histogram.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/histogram.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/image.c upto 1.1.1.7
external/mit/MesaLib/dist/src/mesa/main/image.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/imports.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/imports.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/light.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/light.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/lines.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/lines.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/macros.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/matrix.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/matrix.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/pack_tmp.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/mipmap.c 1.3
external/mit/MesaLib/dist/src/mesa/main/mipmap.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/mm.c    upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/mtypes.h upto 1.1.1.7
external/mit/MesaLib/dist/src/mesa/main/multisample.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/multisample.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/pixel.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/pixel.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/pixelstore.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/pixelstore.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/points.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/points.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/polygon.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/polygon.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/queryobj.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/queryobj.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/rastpos.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/rastpos.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/format_info.py 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/samplerobj.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/readpix.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/readpix.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/remap.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/remap.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/set.c   1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/renderbuffer.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/renderbuffer.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/scissor.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/scissor.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/texcompress_rgtc.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/shared.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/shared.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/simple_list.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/state.c upto 1.1.1.7
external/mit/MesaLib/dist/src/mesa/main/state.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/stencil.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/stencil.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/syncobj.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/syncobj.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/texcompress.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/texcompress.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/drawtex.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/core.h  upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/texcompress_fxt1.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/texcompress_s3tc.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/texcompress_s3tc.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/texenv.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/texenv.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/texstorage.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/texenvprogram.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/texstorage.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/textureview.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/vdpau.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/texformat.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/texformat.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/texgen.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/texgen.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/texgetimage.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/texgetimage.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/teximage.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/teximage.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/texobj.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/texobj.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/texparam.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/texparam.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/texturebarrier.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/texstate.c 1.7
external/mit/MesaLib/dist/src/mesa/main/texstate.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/texstore.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/texstore.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/varray.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/main/varray.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/main/version.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/version.h upto 1.1.1.7
external/mit/MesaLib/dist/src/mesa/main/viewport.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/viewport.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/main/vtxfmt.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/vtxfmt.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/main/compute.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/copyimage.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/copyimage.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/es1_conversion.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/es1_conversion.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/format_pack.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/set.h   1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/arbprogram.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/arbprogram.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/atifragshader.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/atifragshader.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/samplerobj.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/drawtex.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/format_pack.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/ff_fragment_shader.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/objectlabel.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/vdpau.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/pack.c  upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/pack.h  upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/pbo.c   upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/pbo.h   upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/pixeltransfer.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/pixeltransfer.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/querymatrix.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/shaderapi.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/shaderapi.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/shaderobj.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/shaderobj.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/texcompress_rgtc.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/texcompress_rgtc_tmp.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/transformfeedback.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/transformfeedback.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/uniforms.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/uniforms.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/main/format_parser.py 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/format_unpack.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/format_unpack.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/formatquery.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/formatquery.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/formats.csv 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/genmipmap.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/genmipmap.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/get_hash_generator.py 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/get_hash_params.py 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/glformats.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/glformats.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/objectlabel.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/performance_monitor.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/performance_monitor.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/pipelineobj.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/pipelineobj.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/querymatrix.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/shader_query.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/shaderimage.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/shaderimage.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/streaming-load-memcpy.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/streaming-load-memcpy.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/texcompress_bptc.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/texcompress_bptc.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/texcompress_cpal.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/texcompress_cpal.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/texcompress_etc.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/texcompress_etc.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/texcompress_etc_tmp.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/textureview.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/main/uniform_query.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/math/m_clip_tmp.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/math/m_xform_tmp.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/math/m_copy_tmp.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/math/m_debug.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/math/m_debug_clip.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/math/m_debug_norm.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/math/m_debug_util.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/math/m_debug_xform.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/math/m_dotprod_tmp.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/math/m_eval.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/math/m_eval.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/math/m_matrix.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/math/m_matrix.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/math/m_norm_tmp.h 1.3-1.4
external/mit/MesaLib/dist/src/mesa/math/m_trans_tmp.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/math/m_translate.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/math/m_translate.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/math/m_vector.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/math/m_vector.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/math/m_xform.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/math/m_xform.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/sparc/sparc.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/sparc/sparc.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/sparc/sparc_clip.S 1.1.1.1
external/mit/MesaLib/dist/src/mesa/state_tracker/st_atom_blend.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_atom.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_atom.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_atom_constbuf.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_atom_clip.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_atom_framebuffer.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_atom_constbuf.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_atom_depth.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_bufferobjects.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_atom_pixeltransfer.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_atom_rasterizer.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_atom_sampler.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_atom_scissor.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_atom_shader.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_atom_shader.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_atom_stipple.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_atom_texture.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_atom_viewport.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cache.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_msaa.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_bitmap.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_bitmap.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_blit.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_blit.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_msaa.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_bufferobjects.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_clear.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_clear.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_condrender.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_drawpixels.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_drawpixels.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_fbo.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_fbo.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_feedback.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_debug.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_feedback.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_flush.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_flush.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_program.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_program.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_queryobj.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_queryobj.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_rasterpos.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_rasterpos.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_readpixels.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_readpixels.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_strings.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_strings.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_texture.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_texture.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_context.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_context.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_debug.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/state_tracker/st_draw.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_draw.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_draw_feedback.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_extensions.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_extensions.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_format.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_format.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_gen_mipmap.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_gen_mipmap.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_manager.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/state_tracker/st_mesa_to_tgsi.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_mesa_to_tgsi.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_program.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_program.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_vdpau.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/state_tracker/st_texture.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_texture.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/state_tracker/st_atom_msaa.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_drawtex.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_drawtex.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_eglimage.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_syncobj.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_eglimage.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_texturebarrier.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_viewport.c 1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_viewport.h 1.4
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_xformfb.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/state_tracker/st_cb_xformfb.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/state_tracker/st_manager.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/state_tracker/st_atom_array.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/state_tracker/st_glsl_to_tgsi.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/state_tracker/st_glsl_to_tgsi.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/state_tracker/st_vdpau.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/swrast/s_aalinetemp.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/swrast/s_aaline.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/swrast/s_aaline.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/swrast/s_atifragshader.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/swrast/s_aatriangle.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/swrast/s_aatriangle.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/swrast/s_aatritemp.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/swrast/s_chan.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/swrast/s_texture.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/swrast/s_alpha.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/swrast/s_alpha.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/swrast/NOTES 1.1.1.1
external/mit/MesaLib/dist/src/mesa/swrast/s_atifragshader.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/swrast/s_bitmap.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/swrast/s_blend.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/swrast/s_blend.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/swrast/s_blit.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/swrast/s_clear.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/swrast/s_context.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/swrast/s_context.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/swrast/s_copypix.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/swrast/s_depth.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/swrast/s_depth.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/swrast/s_drawpix.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/swrast/s_feedback.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/swrast/s_feedback.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/swrast/s_fog.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/swrast/s_fog.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/swrast/s_fragprog.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/swrast/s_fragprog.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/swrast/s_lines.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/swrast/s_lines.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/swrast/s_linetemp.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/swrast/s_logic.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/swrast/s_logic.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/swrast/s_masking.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/swrast/s_masking.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/swrast/s_points.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/swrast/s_points.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/swrast/s_span.c 1.3
external/mit/MesaLib/dist/src/mesa/swrast/s_span.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/swrast/s_texfetch.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/swrast/s_stencil.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/swrast/s_stencil.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/swrast/s_texcombine.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/swrast/s_texcombine.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/swrast/s_texfilter.c upto 1.1.1.7
external/mit/MesaLib/dist/src/mesa/swrast/s_texfilter.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/swrast/s_triangle.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/swrast/s_triangle.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/swrast/s_tritemp.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/swrast/s_zoom.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/swrast/s_zoom.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/swrast/swrast.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/swrast/s_texrender.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/swrast/s_renderbuffer.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/swrast/s_renderbuffer.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/swrast/s_texfetch.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/swrast/s_texfetch_tmp.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/swrast_setup/ss_context.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/swrast_setup/ss_context.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/swrast_setup/ss_triangle.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/swrast_setup/ss_triangle.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/swrast_setup/ss_tritmp.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/swrast_setup/ss_vb.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/swrast_setup/swrast_setup.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/swrast_setup/NOTES 1.1.1.1
external/mit/MesaLib/dist/src/mesa/tnl/t_pipeline.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/tnl/t_context.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/tnl/t_context.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/tnl/t_draw.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/tnl/t_vb_rendertmp.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/tnl/t_pipeline.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/tnl/t_rasterpos.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/tnl/t_vb_cliptmp.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/tnl/t_vb_fog.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/tnl/t_vb_light.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/tnl/t_vb_lighttmp.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/tnl/t_vb_normals.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/tnl/t_vb_points.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/tnl/t_vb_program.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/tnl/t_vb_render.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/tnl/t_vertex_generic.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/tnl/t_vb_texgen.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/tnl/t_vb_texmat.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/tnl/t_vb_vertex.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/tnl/t_vertex.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/tnl/t_vertex.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/tnl/NOTES    1.1.1.1
external/mit/MesaLib/dist/src/mesa/tnl/t_vertex_sse.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/tnl/t_vp_build.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/tnl/t_vp_build.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/tnl/tnl.h    upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/tnl_dd/t_dd_dmatmp.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/tnl_dd/t_dd_dmatmp2.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/tnl_dd/t_dd_tritmp.h upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/tnl_dd/t_dd_unfilled.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/tnl_dd/t_dd_vb.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/tnl_dd/t_dd_vertex.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/vbo/vbo_attrib.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/vbo/vbo.h    upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/vbo/vbo_noop.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/vbo/vbo_attrib_tmp.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/vbo/vbo_context.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/vbo/vbo_context.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/vbo/vbo_exec.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/vbo/vbo_exec.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/vbo/vbo_exec_api.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/vbo/vbo_exec_array.c upto 1.1.1.7
external/mit/MesaLib/dist/src/mesa/vbo/vbo_exec_draw.c 1.7
external/mit/MesaLib/dist/src/mesa/vbo/vbo_exec_eval.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/vbo/vbo_rebase.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/vbo/vbo_save.c upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/vbo/vbo_save.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/vbo/vbo_save_api.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/vbo/vbo_save_draw.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/vbo/vbo_save_loopback.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/vbo/vbo_split.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/vbo/vbo_split.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/vbo/vbo_split_copy.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/vbo/vbo_split_inplace.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/vbo/vbo_noop.h 1.1.1.1
external/mit/MesaLib/dist/src/mesa/vbo/vbo_primitive_restart.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/x86-64/calling_convention.txt 1.1.1.1
external/mit/MesaLib/dist/src/mesa/x86-64/x86-64.c upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/x86-64/x86-64.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/x86-64/xform4.S upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/x86/3dnow_normal.S upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/x86/3dnow.c  upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/x86/3dnow.h  upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/x86/common_x86_asm.S upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/x86/3dnow_xform1.S upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/x86/3dnow_xform2.S upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/x86/3dnow_xform3.S upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/x86/3dnow_xform4.S upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/x86/assyntax.h upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/x86/clip_args.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/x86/common_x86.c upto 1.2
external/mit/MesaLib/dist/src/mesa/x86/common_x86_features.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/x86/common_x86_asm.h upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/x86/read_rgba_span_x86.S upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/x86/gen_matypes.c upto 1.1.1.6
external/mit/MesaLib/dist/src/mesa/x86/mmx.h    upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/x86/norm_args.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/x86/sse_normal.S upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/x86/sse.c    upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/x86/sse.h    upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/x86/sse_xform1.S upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/x86/sse_xform2.S upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/x86/sse_xform3.S upto 1.1.1.4
external/mit/MesaLib/dist/src/mesa/x86/sse_xform4.S upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/x86/x86_cliptest.S upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/x86/x86_xform.c upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/x86/x86_xform.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/x86/x86_xform2.S upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/x86/x86_xform3.S upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/x86/x86_xform4.S upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/x86/xform_args.h upto 1.1.1.3
external/mit/MesaLib/dist/src/mesa/Makefile.am  1.1.1.1
external/mit/MesaLib/dist/src/mesa/program/arbprogparse.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/arbprogparse.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/prog_hash_table.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/program/hash_table.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/ir_to_mesa.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/ir_to_mesa.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/prog_opt_constant_fold.c 1.1.1.1
external/mit/MesaLib/dist/src/mesa/program/string_to_uint_map.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mesa/program/prog_cache.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/prog_cache.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/prog_execute.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/prog_execute.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/prog_instruction.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/prog_instruction.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/program.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/prog_noise.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/prog_noise.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/prog_optimize.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/prog_optimize.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/prog_parameter.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/prog_parameter.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/prog_parameter_layout.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/prog_print.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/prog_print.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/prog_statevars.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/prog_statevars.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/program.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/program_lexer.l upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/program_parse.y upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/sampler.cpp upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/program_parse_extra.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/program_parser.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/programopt.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/programopt.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/register_allocate.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/register_allocate.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/sampler.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/symbol_table.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/symbol_table.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/program/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/mesa/gl.pc.in     upto 1.1.1.5
external/mit/MesaLib/dist/src/mesa/Android.gen.mk 1.1.1.1
external/mit/MesaLib/dist/src/mesa/Android.libmesa_dricore.mk 1.1.1.1
external/mit/MesaLib/dist/src/mesa/SConscript   upto 1.1.1.2
external/mit/MesaLib/dist/src/mesa/Android.mk   1.1.1.1
external/mit/MesaLib/dist/src/mesa/Android.libmesa_glsl_utils.mk 1.1.1.1
external/mit/MesaLib/dist/src/mesa/Android.libmesa_st_mesa.mk 1.1.1.1
external/mit/MesaLib/dist/src/mesa/Android.mesa_gen_matypes.mk 1.1.1.1
external/mit/MesaLib/dist/src/mesa/Makefile.in  1.1.1.1
external/mit/MesaLib/dist/src/mesa/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/gbm/backends/dri/gbm_dri.c upto 1.1.1.2
external/mit/MesaLib/dist/src/gbm/backends/dri/gbm_driint.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gbm/main/gbm.c    upto 1.1.1.2
external/mit/MesaLib/dist/src/gbm/main/gbm.h    upto 1.1.1.2
external/mit/MesaLib/dist/src/gbm/main/gbm.pc.in upto 1.1.1.2
external/mit/MesaLib/dist/src/gbm/main/gbmint.h upto 1.1.1.2
external/mit/MesaLib/dist/src/gbm/Makefile.am   1.1.1.1
external/mit/MesaLib/dist/src/gbm/Makefile.in   1.1.1.1
external/mit/MesaLib/dist/src/gbm/gbm-symbols-check 1.1.1.1
external/mit/MesaLib/dist/src/Makefile.am       1.1.1.1
external/mit/MesaLib/dist/src/SConscript        upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/es1api/glesv1_cm.pc.in upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/es1api/ABI-check 1.1.1.1
external/mit/MesaLib/dist/src/mapi/es2api/glesv2.pc.in upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/es2api/ABI-check 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/APPLE_vertex_array_object.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_ES2_compatibility.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_color_buffer_float.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_copy_buffer.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_draw_elements_base_vertex.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_draw_instanced.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_framebuffer_object.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_geometry_shader4.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_robustness.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_get_program_binary.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_instanced_arrays.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_map_buffer_range.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_sampler_objects.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_seamless_cube_map.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_sync.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_texture_buffer_object.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_vertex_array_object.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/EXT_draw_buffers2.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/EXT_framebuffer_object.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/EXT_gpu_shader4.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/EXT_provoking_vertex.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/EXT_separate_shader_objects.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/GL3x.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/EXT_texture_array.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/EXT_texture_integer.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/EXT_transform_feedback.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/NV_conditional_render.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/NV_primitive_restart.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/OES_EGL_image.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/OES_fixed_point.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/OES_single_precision.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/es_EXT.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/extension_helper.py upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/glX_API.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/glX_XML.py upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/glX_proto_common.py upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/glX_proto_recv.py upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/glX_proto_send.py upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/glX_proto_size.py upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/glX_server_table.py upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/gl_API.dtd upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/gl_API.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/gl_SPARC_asm.py upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/gl_XML.py upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/gl_and_es_API.xml upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/gl_apitemp.py upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/gl_enums.py upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/gl_gentable.py upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/gl_offsets.py upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/gl_procs.py upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/gl_table.py upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/gl_x86-64_asm.py upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/gl_x86_asm.py upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/mesadef.py upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/remap_helper.py upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/typeexpr.py upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/gen/AMD_performance_monitor.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_ES3_compatibility.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_base_instance.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_blend_func_extended.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_clear_buffer_object.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_clear_texture.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_compressed_texture_pixel_storage.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_compute_shader.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_copy_image.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_debug_output.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_depth_buffer_float.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_draw_buffers.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_draw_indirect.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_gpu_shader5.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_internalformat_query.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_multi_bind.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_invalidate_subdata.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_sample_shading.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_separate_shader_objects.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_shader_atomic_counters.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_shader_image_load_store.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_texture_barrier.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_texture_buffer_range.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_texture_compression_rgtc.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_texture_cube_map_array.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_texture_float.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_texture_gather.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_texture_multisample.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_texture_rg.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_texture_rgb10_a2ui.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_texture_storage.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_texture_storage_multisample.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_texture_view.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_uniform_buffer_object.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_vertex_attrib_binding.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_vertex_type_2_10_10_10_rev.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/ARB_viewport_array.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/GL4x.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/INTEL_performance_query.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/KHR_debug.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/NV_vdpau_interop.xml 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/SConscript 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/gl_genexec.py 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/glapi_gen.mk 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/gen/next_available_offset.sh 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/glapi.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/glapi.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/glapi_dispatch.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/glapi_entrypoint.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/tests/check_table.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mapi/glapi/glapi_getproc.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/glapi_nop.c upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/glapi_priv.h upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/glapi/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/mapi/shared-glapi/tests/check_table.cpp 1.1.1.1
external/mit/MesaLib/dist/src/mapi/shared-glapi/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/vgapi/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/mapi/vgapi/SConscript upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/vgapi/vg.pc.in upto 1.1.1.2
external/mit/MesaLib/dist/src/mapi/vgapi/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/mapi/Android.mk   1.1.1.1
external/mit/MesaLib/dist/src/mapi/Makefile.am  1.1.1.1
external/mit/MesaLib/dist/src/mapi/Makefile.in  1.1.1.1
external/mit/MesaLib/dist/src/mapi/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/mapi/entry.c      1.1.1.1
external/mit/MesaLib/dist/src/mapi/entry.h      1.1.1.1
external/mit/MesaLib/dist/src/mapi/entry_x86-64_tls.h 1.1.1.1
external/mit/MesaLib/dist/src/mapi/entry_x86_tls.h 1.1-1.2
external/mit/MesaLib/dist/src/mapi/entry_x86_tsd.h 1.1-1.2
external/mit/MesaLib/dist/src/mapi/mapi.c       1.1.1.1
external/mit/MesaLib/dist/src/mapi/mapi.h       1.1.1.1
external/mit/MesaLib/dist/src/mapi/mapi_abi.py  1.1.1.1
external/mit/MesaLib/dist/src/mapi/mapi_glapi.c 1.1.1.1
external/mit/MesaLib/dist/src/mapi/mapi_tmp.h   1.1.1.1
external/mit/MesaLib/dist/src/mapi/stub.c       1.1.1.1
external/mit/MesaLib/dist/src/mapi/stub.h       1.1.1.1
external/mit/MesaLib/dist/src/mapi/table.c      1.1.1.1
external/mit/MesaLib/dist/src/mapi/table.h      1.1.1.1
external/mit/MesaLib/dist/src/mapi/u_compiler.h 1.1.1.1
external/mit/MesaLib/dist/src/mapi/u_current.c  1.1.1.1
external/mit/MesaLib/dist/src/mapi/u_current.h  1.1.1.1
external/mit/MesaLib/dist/src/mapi/u_execmem.c  1.1.1.1
external/mit/MesaLib/dist/src/mapi/u_execmem.h  1.1.1.1
external/mit/MesaLib/dist/src/mapi/u_macros.h   1.1.1.1
external/mit/MesaLib/dist/src/mapi/u_thread.h   1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/internal/gtest-death-test-internal.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/internal/gtest-filepath.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/internal/gtest-internal.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/internal/gtest-linked_ptr.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/internal/gtest-param-util-generated.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/internal/gtest-param-util-generated.h.pump 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/internal/gtest-param-util.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/internal/gtest-port.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/internal/gtest-string.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/internal/gtest-tuple.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/internal/gtest-tuple.h.pump 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/internal/gtest-type-util.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/internal/gtest-type-util.h.pump 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/gtest-death-test.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/gtest-message.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/gtest-param-test.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/gtest-param-test.h.pump 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/gtest-printers.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/gtest-spi.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/gtest-test-part.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/gtest-typed-test.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/gtest.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/gtest_pred_impl.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/include/gtest/gtest_prod.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/gtest/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/gtest/src/gtest-all.cc 1.1.1.1
external/mit/MesaLib/dist/src/gtest/src/gtest-death-test.cc 1.1.1.1
external/mit/MesaLib/dist/src/gtest/src/gtest-filepath.cc 1.1.1.1
external/mit/MesaLib/dist/src/gtest/src/gtest-internal-inl.h 1.1.1.1
external/mit/MesaLib/dist/src/gtest/src/gtest-port.cc 1.1.1.1
external/mit/MesaLib/dist/src/gtest/src/gtest-printers.cc 1.1.1.1
external/mit/MesaLib/dist/src/gtest/src/gtest-test-part.cc 1.1.1.1
external/mit/MesaLib/dist/src/gtest/src/gtest-typed-test.cc 1.1.1.1
external/mit/MesaLib/dist/src/gtest/src/gtest.cc 1.1.1.1
external/mit/MesaLib/dist/src/gtest/src/gtest_main.cc 1.1.1.1
external/mit/MesaLib/dist/src/Makefile.in       1.1.1.1
external/mit/MesaLib/dist/src/hgl/GLDispatcher.cpp 1.1.1.1
external/mit/MesaLib/dist/src/hgl/GLDispatcher.h 1.1.1.1
external/mit/MesaLib/dist/src/hgl/GLRenderer.cpp 1.1.1.1
external/mit/MesaLib/dist/src/hgl/GLRendererRoster.cpp 1.1.1.1
external/mit/MesaLib/dist/src/hgl/GLRendererRoster.h 1.1.1.1
external/mit/MesaLib/dist/src/hgl/GLView.cpp    1.1.1.1
external/mit/MesaLib/dist/src/hgl/SConscript    1.1.1.1
external/mit/MesaLib/dist/src/loader/Android.mk 1.1.1.1
external/mit/MesaLib/dist/src/loader/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/loader/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/loader/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/loader/SConscript 1.1.1.1
external/mit/MesaLib/dist/src/loader/loader.c   1.1.1.1
external/mit/MesaLib/dist/src/loader/loader.h   1.1.1.1
external/mit/MesaLib/dist/src/loader/pci_id_driver_map.c 1.1.1.1
external/mit/MesaLib/dist/src/loader/pci_id_driver_map.h 1.1.1.1
external/mit/MesaLib/dist/src/util/tests/hash_table/Makefile.am 1.1.1.1
external/mit/MesaLib/dist/src/util/tests/hash_table/Makefile.in 1.1.1.1
external/mit/MesaLib/dist/src/util/tests/hash_table/collision.c 1.1.1.1
external/mit/MesaLib/dist/src/util/tests/hash_table/delete_and_lookup.c 1.1.1.1
external/mit/MesaLib/dist/src/util/tests/hash_table/delete_management.c 1.1.1.1
external/mit/MesaLib/dist/src/util/tests/hash_table/destroy_callback.c 1.1.1.1
external/mit/MesaLib/dist/src/util/tests/hash_table/insert_and_lookup.c 1.1.1.1
external/mit/MesaLib/dist/src/util/tests/hash_table/insert_many.c 1.1.1.1
external/mit/MesaLib/dist/src/util/tests/hash_table/null_destroy.c 1.1.1.1
external/mit/MesaLib/dist/src/util/tests/hash_table/random_entry.c 1.1.1.1
external/mit/MesaLib/dist/src/util/tests/hash_table/remove_null.c 1.1.1.1
external/mit/MesaLib/dist/src/util/tests/hash_table/replacement.c 1.1.1.1
external/mit/MesaLib/dist/src/util/Android.mk   1.1.1.1
external/mit/MesaLib/dist/src/util/Makefile.am  1.1.1.1
external/mit/MesaLib/dist/src/util/Makefile.in  1.1.1.1
external/mit/MesaLib/dist/src/util/Makefile.sources 1.1.1.1
external/mit/MesaLib/dist/src/util/SConscript   1.1.1.1
external/mit/MesaLib/dist/src/util/format_srgb.h 1.1.1.1
external/mit/MesaLib/dist/src/util/format_srgb.py 1.1.1.1
external/mit/MesaLib/dist/src/util/hash_table.c 1.1.1.1
external/mit/MesaLib/dist/src/util/hash_table.h 1.1.1.1
external/mit/MesaLib/dist/src/util/macros.h     1.1.1.1
external/mit/MesaLib/dist/src/util/ralloc.c     1.1.1.1
external/mit/MesaLib/dist/src/util/ralloc.h     1.1.1.1
external/mit/MesaLib/dist/doxygen/Makefile      1.1.1.1
external/mit/MesaLib/dist/doxygen/README        1.1.1.1
external/mit/MesaLib/dist/doxygen/common.doxy   1.1.1.1
external/mit/MesaLib/dist/doxygen/core_subset.doxy 1.1.1.1
external/mit/MesaLib/dist/doxygen/doxy.bat      1.1.1.1
external/mit/MesaLib/dist/doxygen/gallium.doc   1.1.1.1
external/mit/MesaLib/dist/doxygen/gallium.doxy  1.1.1.1
external/mit/MesaLib/dist/doxygen/gbm.doxy      1.1.1.1
external/mit/MesaLib/dist/doxygen/glapi.doxy    1.1.1.1
external/mit/MesaLib/dist/doxygen/glsl.doxy     1.1.1.1
external/mit/MesaLib/dist/doxygen/header.html   1.1.1.1
external/mit/MesaLib/dist/doxygen/header_subset.html 1.1.1.1
external/mit/MesaLib/dist/doxygen/i965.doxy     1.1.1.1
external/mit/MesaLib/dist/doxygen/main.doxy     1.1.1.1
external/mit/MesaLib/dist/doxygen/math.doxy     1.1.1.1
external/mit/MesaLib/dist/doxygen/math_subset.doxy 1.1.1.1
external/mit/MesaLib/dist/doxygen/radeon_subset.doxy 1.1.1.1
external/mit/MesaLib/dist/doxygen/shader.doxy   1.1.1.1
external/mit/MesaLib/dist/doxygen/swrast.doxy   1.1.1.1
external/mit/MesaLib/dist/doxygen/swrast_setup.doxy 1.1.1.1
external/mit/MesaLib/dist/doxygen/tnl.doxy      1.1.1.1
external/mit/MesaLib/dist/doxygen/tnl_dd.doxy   1.1.1.1
external/mit/MesaLib/dist/doxygen/vbo.doxy      1.1.1.1
external/mit/MesaLib/dist/autogen.sh            1.1.1.1
external/mit/MesaLib/dist/m4/ax_check_compile_flag.m4 1.1.1.1
external/mit/MesaLib/dist/m4/ax_gcc_builtin.m4  1.1.1.1
external/mit/MesaLib/dist/m4/ax_prog_bison.m4   1.1.1.1
external/mit/MesaLib/dist/m4/ax_prog_flex.m4    1.1.1.1
external/mit/MesaLib/dist/m4/ax_pthread.m4      1.1.1.1
external/mit/MesaLib/dist/configure.ac          upto 1.1.1.6
external/mit/MesaLib/dist/aclocal.m4            upto 1.1.1.6
external/mit/MesaLib/dist/configure             upto 1.1.1.6
external/mit/MesaLib/dist/scons/crossmingw.py   upto 1.1.1.2
external/mit/MesaLib/dist/scons/custom.py       upto 1.1.1.2
external/mit/MesaLib/dist/scons/gallium.py      upto 1.1.1.2
external/mit/MesaLib/dist/scons/llvm.py         upto 1.1.1.2
external/mit/MesaLib/dist/scons/source_list.py  1.1.1.1
external/mit/MesaLib/dist/SConstruct            upto 1.1.1.2
external/mit/MesaLib/dist/common.py             upto 1.1.1.2
external/mit/MesaLib/dist/Makefile.am           1.1.1.1
external/mit/MesaLib/dist/Android.common.mk     1.1.1.1
external/mit/MesaLib/dist/Android.mk            1.1.1.1
external/mit/MesaLib/dist/CleanSpec.mk          1.1.1.1
external/mit/MesaLib/dist/Makefile.in           1.1.1.1
external/mit/MesaLib/dist/install-gallium-links.mk 1.1.1.1
external/mit/MesaLib/dist/install-lib-links.mk  1.1.1.1
external/mit/MesaLib/src/arch/i386/matypes.h    1.1
external/mit/MesaLib/src/arch/x86_64/matypes.h  1.1
external/mit/MesaLib/src/Makefile.inc           1.1
external/mit/MesaLib/src/gallium/auxiliary/Makefile 1.1
external/mit/MesaLib/src/gallium/auxiliary/Makefile.inc 1.1
external/mit/MesaLib/src/gallium/auxiliary/u_format_table.c 1.1
external/mit/MesaLib/src/gallium/auxiliary/u_indices_gen.c 1.1
external/mit/MesaLib/src/gallium/auxiliary/u_unfilled_gen.c 1.1
external/mit/MesaLib/src/mapi/glapi/Makefile    1.1
external/mit/MesaLib/src/mapi/glapi/glapi_gentable.c 1.1
external/mit/MesaLib/src/mapi/glapi/glapi_glapi_mapi_tmp.h 1.1
external/mit/MesaLib/src/mapi/glapi/glapi_x86-64.S 1.1
external/mit/MesaLib/src/mapi/glapi/glapitable.h 1.1
external/mit/MesaLib/src/mapi/glapi/glapitemp.h 1.1
external/mit/MesaLib/src/mapi/glapi/glprocs.h   1.1
external/mit/MesaLib/src/mapi/glapi/indirect.c  1.1
external/mit/MesaLib/src/mapi/glapi/indirect.h  1.1
external/mit/MesaLib/src/mapi/glapi/indirect_init.c 1.1
external/mit/MesaLib/src/mapi/glapi/indirect_size.c 1.1
external/mit/MesaLib/src/mapi/glapi/indirect_size.h 1.1
external/mit/MesaLib/src/mapi/glapi/shared-glapi_glapi_mapi_tmp.h 1.1
external/mit/MesaLib/src/mapi/Makefile          1.1
external/mit/MesaLib/src/mapi/shared-glapi_glapi_mapi_tmp.h 1.1
external/mit/MesaLib/src/mesa/drivers/dri/common/xmlpool/Makefile 1.1
external/mit/MesaLib/src/mesa/drivers/dri/common/xmlpool/options.h 1.1
external/mit/MesaLib/src/mesa/format_info.c     1.1
external/mit/MesaLib/src/mesa/get_hash.h        1.1
external/mit/MesaLib/src/mesa/main/Makefile     1.1
external/mit/MesaLib/src/mesa/main/api_exec.c   1.1
external/mit/MesaLib/src/mesa/main/dispatch.h   1.1
external/mit/MesaLib/src/mesa/main/enums.c      1.1
external/mit/MesaLib/src/mesa/main/git_sha1.h   1.1
external/mit/MesaLib/src/mesa/main/remap_helper.h 1.1
external/mit/MesaLib/src/mesa/program/Makefile  1.1
external/mit/MesaLib/src/mesa/program/program_parse.tab.c 1.1
external/mit/MesaLib/src/mesa/program/program_parse.tab.h 1.1
external/mit/MesaLib/src/util/Makefile          1.1
external/mit/MesaLib/src/util/format_srgb.c     1.1

"Make xsrc/external/mit/MesaLib/ match -current" - i.e. import mesa 10.3.5
@
text
@d52 1
a56 1
#include "program/hash_table.h"
a57 11
#include "ir_builder.h"

using namespace ir_builder;

static void
detect_conflicting_assignments(struct _mesa_glsl_parse_state *state,
			       exec_list *instructions);
static void
remove_per_vertex_blocks(exec_list *instructions,
                         _mesa_glsl_parse_state *state, ir_variable_mode mode);

d63 1
d65 1
a65 1
   state->symbols->separate_function_namespace = state->language_version == 110;
a70 3
   state->gs_input_prim_type_specified = false;
   state->cs_input_local_size_specified = false;

a89 1
   detect_conflicting_assignments(state, instructions);
a91 82

   /* Move all of the variable declarations to the front of the IR list, and
    * reverse the order.  This has the (intended!) side effect that vertex
    * shader inputs and fragment shader outputs will appear in the IR in the
    * same order that they appeared in the shader code.  This results in the
    * locations being assigned in the declared order.  Many (arguably buggy)
    * applications depend on this behavior, and it matches what nearly all
    * other drivers do.
    */
   foreach_in_list_safe(ir_instruction, node, instructions) {
      ir_variable *const var = node->as_variable();

      if (var == NULL)
         continue;

      var->remove();
      instructions->push_head(var);
   }

   /* Figure out if gl_FragCoord is actually used in fragment shader */
   ir_variable *const var = state->symbols->get_variable("gl_FragCoord");
   if (var != NULL)
      state->fs_uses_gl_fragcoord = var->data.used;

   /* From section 7.1 (Built-In Language Variables) of the GLSL 4.10 spec:
    *
    *     If multiple shaders using members of a built-in block belonging to
    *     the same interface are linked together in the same program, they
    *     must all redeclare the built-in block in the same way, as described
    *     in section 4.3.7 "Interface Blocks" for interface block matching, or
    *     a link error will result.
    *
    * The phrase "using members of a built-in block" implies that if two
    * shaders are linked together and one of them *does not use* any members
    * of the built-in block, then that shader does not need to have a matching
    * redeclaration of the built-in block.
    *
    * This appears to be a clarification to the behaviour established for
    * gl_PerVertex by GLSL 1.50, therefore implement it regardless of GLSL
    * version.
    *
    * The definition of "interface" in section 4.3.7 that applies here is as
    * follows:
    *
    *     The boundary between adjacent programmable pipeline stages: This
    *     spans all the outputs in all compilation units of the first stage
    *     and all the inputs in all compilation units of the second stage.
    *
    * Therefore this rule applies to both inter- and intra-stage linking.
    *
    * The easiest way to implement this is to check whether the shader uses
    * gl_PerVertex right after ast-to-ir conversion, and if it doesn't, simply
    * remove all the relevant variable declaration from the IR, so that the
    * linker won't see them and complain about mismatches.
    */
   remove_per_vertex_blocks(instructions, state, ir_var_shader_in);
   remove_per_vertex_blocks(instructions, state, ir_var_shader_out);
}


static ir_expression_operation
get_conversion_operation(const glsl_type *to, const glsl_type *from,
                         struct _mesa_glsl_parse_state *state)
{
   switch (to->base_type) {
   case GLSL_TYPE_FLOAT:
      switch (from->base_type) {
      case GLSL_TYPE_INT: return ir_unop_i2f;
      case GLSL_TYPE_UINT: return ir_unop_u2f;
      default: return (ir_expression_operation)0;
      }

   case GLSL_TYPE_UINT:
      if (!state->is_version(400, 0) && !state->ARB_gpu_shader5_enable)
         return (ir_expression_operation)0;
      switch (from->base_type) {
         case GLSL_TYPE_INT: return ir_unop_i2u;
         default: return (ir_expression_operation)0;
      }

   default: return (ir_expression_operation)0;
   }
d110 1
a110 1
                          struct _mesa_glsl_parse_state *state)
d116 4
a119 2
   /* Prior to GLSL 1.20, there are no implicit conversions */
   if (!state->is_version(120, 0))
d126 2
a127 1
    *    array of float.
d129 4
a132 1
   if (!to->is_numeric() || !from->type->is_numeric())
d135 18
a152 13
   /* We don't actually want the specific type `to`, we want a type
    * with the same base type as `to`, but the same vector width as
    * `from`.
    */
   to = glsl_type::get_instance(to->base_type, from->type->vector_elements,
                                from->type->matrix_columns);

   ir_expression_operation op = get_conversion_operation(to, from->type, state);
   if (op) {
      from = new(ctx) ir_expression(op, to, from, NULL);
      return true;
   } else {
      return false;
d154 2
d161 2
a162 2
                       bool multiply,
                       struct _mesa_glsl_parse_state *state, YYLTYPE *loc)
d175 1
a175 1
                       "operands to arithmetic operators must be numeric");
d187 2
a188 2
                       "could not implicitly convert operands to "
                       "arithmetic operator");
d205 1
a205 1
                       "base type mismatch for arithmetic operator");
d227 1
a227 1
         return type_b;
d245 1
a245 1
         return type_a;
d247 3
a249 3
         _mesa_glsl_error(loc, state,
                          "vector size mismatch for arithmetic operator");
         return glsl_type::error_type;
d280 1
a280 1
         return type_a;
d283 16
a298 16
         /* Matrix multiply.  The columns of A must match the rows of B.  Given
          * the other previously tested constraints, this means the vector type
          * of a row from A must be the same as the vector type of a column from
          * B.
          */
         if (type_a->row_type() == type_b->column_type()) {
            /* The resulting matrix has the number of columns of matrix B and
             * the number of rows of matrix A.  We get the row count of A by
             * looking at the size of a vector that makes up a column.  The
             * transpose (size of a row) is done for B.
             */
            const glsl_type *const type =
               glsl_type::get_instance(type_a->base_type,
                                       type_a->column_type()->vector_elements,
                                       type_b->row_type()->vector_elements);
            assert(type != glsl_type::error_type);
d300 2
a301 2
            return type;
         }
d303 32
a334 18
         /* A is a matrix and B is a column vector.  Columns of A must match
          * rows of B.  Given the other previously tested constraints, this
          * means the vector type of a row from A must be the same as the
          * vector the type of B.
          */
         if (type_a->row_type() == type_b) {
            /* The resulting vector has a number of elements equal to
             * the number of rows of matrix A. */
            const glsl_type *const type =
               glsl_type::get_instance(type_a->base_type,
                                       type_a->column_type()->vector_elements,
                                       1);
            assert(type != glsl_type::error_type);

            return type;
         }
      } else {
         assert(type_b->is_matrix());
d336 2
a337 16
         /* A is a row vector and B is a matrix.  Columns of A must match rows
          * of B.  Given the other previously tested constraints, this means
          * the type of A must be the same as the vector type of a column from
          * B.
          */
         if (type_a == type_b->column_type()) {
            /* The resulting vector has a number of elements equal to
             * the number of columns of matrix B. */
            const glsl_type *const type =
               glsl_type::get_instance(type_a->base_type,
                                       type_b->row_type()->vector_elements,
                                       1);
            assert(type != glsl_type::error_type);

            return type;
         }
d354 1
a354 1
                             struct _mesa_glsl_parse_state *state, YYLTYPE *loc)
d366 1
a366 1
                       "operands to arithmetic operators must be numeric");
d388 2
a389 1
    if (!state->check_bitwise_operations_allowed(loc)) {
d441 2
a442 2
                    const struct glsl_type *type_b,
                    struct _mesa_glsl_parse_state *state, YYLTYPE *loc)
d444 4
a447 1
   if (!state->check_version(130, 300, loc, "operator '%%' is reserved")) {
d456 3
a458 11
   if (!type_a->is_integer()) {
      _mesa_glsl_error(loc, state, "LHS of operator %% must be an integer");
      return glsl_type::error_type;
   }
   if (!type_b->is_integer()) {
      _mesa_glsl_error(loc, state, "RHS of operator %% must be an integer");
      return glsl_type::error_type;
   }
   if (type_a->base_type != type_b->base_type) {
      _mesa_glsl_error(loc, state,
                       "operands of %% must have the same base type");
d469 2
a470 2
          || (type_a->vector_elements == type_b->vector_elements))
      return type_a;
d484 1
a484 1
                       struct _mesa_glsl_parse_state *state, YYLTYPE *loc)
d499 2
a500 2
                       "operands to relational operators must be scalar and "
                       "numeric");
d511 2
a512 2
                       "could not implicitly convert operands to "
                       "relational operator");
d543 2
a544 1
   if (!state->check_bitwise_operations_allowed(loc)) {
d556 1
a556 1
                       "integer vector", ast_expression::operator_string(op));
d562 1
a562 1
                       "integer vector", ast_expression::operator_string(op));
d570 3
a572 3
      _mesa_glsl_error(loc, state, "if the first operand of %s is scalar, the "
                       "second must be scalar as well",
                       ast_expression::operator_string(op));
d582 3
a584 3
      _mesa_glsl_error(loc, state, "vector operands to operator %s must "
                       "have same number of elements",
                       ast_expression::operator_string(op));
d612 2
a613 2
                    YYLTYPE loc, const glsl_type *lhs_type,
                    ir_rvalue *rhs, bool is_initializer)
d626 1
a626 1
   /* If the array element types are the same and the LHS is unsized,
d633 4
a636 9
   if (lhs_type->is_unsized_array() && rhs->type->is_array()
       && (lhs_type->element_type() == rhs->type->element_type())) {
      if (is_initializer) {
         return rhs;
      } else {
         _mesa_glsl_error(&loc, state,
                          "implicitly sized arrays cannot be assigned");
         return NULL;
      }
a644 6
   _mesa_glsl_error(&loc, state,
                    "%s of type %s cannot be assigned to "
                    "variable of type %s",
                    is_initializer ? "initializer" : "value",
                    rhs->type->name, lhs_type->name);

d654 1
a654 1
      deref->var->data.max_array_access = deref->type->length - 1;
d658 1
a658 1
static bool
d660 2
a661 5
              const char *non_lvalue_description,
              ir_rvalue *lhs, ir_rvalue *rhs,
              ir_rvalue **out_rvalue, bool needs_rvalue,
              bool is_initializer,
              YYLTYPE lhs_loc)
a664 41
   ir_rvalue *extract_channel = NULL;

   /* If the assignment LHS comes back as an ir_binop_vector_extract
    * expression, move it to the RHS as an ir_triop_vector_insert.
    */
   if (lhs->ir_type == ir_type_expression) {
      ir_expression *const lhs_expr = lhs->as_expression();

      if (unlikely(lhs_expr->operation == ir_binop_vector_extract)) {
         ir_rvalue *new_rhs =
            validate_assignment(state, lhs_loc, lhs->type,
                                rhs, is_initializer);

         if (new_rhs == NULL) {
            return lhs;
         } else {
            /* This converts:
             * - LHS: (expression float vector_extract <vec> <channel>)
             * - RHS: <scalar>
             * into:
             * - LHS: <vec>
             * - RHS: (expression vec2 vector_insert <vec> <channel> <scalar>)
             *
             * The LHS type is now a vector instead of a scalar.  Since GLSL
             * allows assignments to be used as rvalues, we need to re-extract
             * the channel from assignment_temp when returning the rvalue.
             */
            extract_channel = lhs_expr->operands[1];
            rhs = new(ctx) ir_expression(ir_triop_vector_insert,
                                         lhs_expr->operands[0]->type,
                                         lhs_expr->operands[0],
                                         new_rhs,
                                         extract_channel);
            lhs = lhs_expr->operands[0]->clone(ctx, NULL);
         }
      }
   }

   ir_variable *lhs_var = lhs->variable_referenced();
   if (lhs_var)
      lhs_var->data.assigned = true;
d667 2
a668 6
      if (non_lvalue_description != NULL) {
         _mesa_glsl_error(&lhs_loc, state,
                          "assignment to %s",
                          non_lvalue_description);
         error_emitted = true;
      } else if (lhs_var != NULL && lhs_var->data.read_only) {
d671 1
a671 13
                          lhs_var->name);
         error_emitted = true;
      } else if (lhs->type->is_array() &&
                 !state->check_version(120, 300, &lhs_loc,
                                       "whole array assignment forbidden")) {
         /* From page 32 (page 38 of the PDF) of the GLSL 1.10 spec:
          *
          *    "Other binary or unary expressions, non-dereferenced
          *     arrays, function names, swizzles with repeated fields,
          *     and constants cannot be l-values."
          *
          * The restriction on arrays is lifted in GLSL 1.20 and GLSL ES 3.00.
          */
d673 11
d685 2
a686 2
         _mesa_glsl_error(& lhs_loc, state, "non-lvalue in assignment");
         error_emitted = true;
d691 4
a694 2
      validate_assignment(state, lhs_loc, lhs->type, rhs, is_initializer);
   if (new_rhs != NULL) {
d702 2
a703 2
      if (lhs->type->is_unsized_array()) {
         ir_dereference *const d = lhs->as_dereference();
d705 1
a705 1
         assert(d != NULL);
d707 1
a707 1
         ir_variable *const var = d->variable_referenced();
d709 1
a709 1
         assert(var != NULL);
d711 6
a716 6
         if (var->data.max_array_access >= unsigned(rhs->type->array_size())) {
            /* FINISHME: This should actually log the location of the RHS. */
            _mesa_glsl_error(& lhs_loc, state, "array size must be > %u due to "
                             "previous access",
                             var->data.max_array_access);
         }
d718 3
a720 7
         var->type = glsl_type::get_array_instance(lhs->type->element_type(),
                                                   rhs->type->array_size());
         d->type = var->type;
      }
      if (lhs->type->is_array()) {
         mark_whole_array_access(rhs);
         mark_whole_array_access(lhs);
d722 2
d731 13
a743 6
    */
   if (needs_rvalue) {
      ir_variable *var = new(ctx) ir_variable(rhs->type, "assignment_tmp",
                                              ir_var_temporary);
      instructions->push_tail(var);
      instructions->push_tail(assign(var, rhs));
d745 2
a746 5
      if (!error_emitted) {
         ir_dereference_variable *deref_var = new(ctx) ir_dereference_variable(var);
         instructions->push_tail(new(ctx) ir_assignment(lhs, deref_var));
      }
      ir_rvalue *rvalue = new(ctx) ir_dereference_variable(var);
d748 1
a748 14
      if (extract_channel) {
         rvalue = new(ctx) ir_expression(ir_binop_vector_extract,
                                         rvalue,
                                         extract_channel->clone(ctx, NULL));
      }

      *out_rvalue = rvalue;
   } else {
      if (!error_emitted)
         instructions->push_tail(new(ctx) ir_assignment(lhs, rhs));
      *out_rvalue = NULL;
   }

   return error_emitted;
d760 1
a760 1
   var->data.mode = ir_var_auto;
d763 6
a768 1
						  lvalue));
d775 2
a776 1
ast_node::hir(exec_list *instructions, struct _mesa_glsl_parse_state *state)
a783 14
void
ast_function_expression::hir_no_rvalue(exec_list *instructions,
                                       struct _mesa_glsl_parse_state *state)
{
   (void)hir(instructions, state);
}

void
ast_aggregate_initializer::hir_no_rvalue(exec_list *instructions,
                                         struct _mesa_glsl_parse_state *state)
{
   (void)hir(instructions, state);
}

d804 1
a804 1
         ir_rvalue *e0, *e1, *result;
d806 11
a816 11
         e0 = new(mem_ctx) ir_dereference_array(op0->clone(mem_ctx, NULL),
                                                new(mem_ctx) ir_constant(i));
         e1 = new(mem_ctx) ir_dereference_array(op1->clone(mem_ctx, NULL),
                                                new(mem_ctx) ir_constant(i));
         result = do_comparison(mem_ctx, operation, e0, e1);

         if (cmp) {
            cmp = new(mem_ctx) ir_expression(join_op, cmp, result);
         } else {
            cmp = result;
         }
d826 2
a827 2
         ir_rvalue *e0, *e1, *result;
         const char *field_name = op0->type->fields.structure[i].name;
d829 11
a839 11
         e0 = new(mem_ctx) ir_dereference_record(op0->clone(mem_ctx, NULL),
                                                 field_name);
         e1 = new(mem_ctx) ir_dereference_record(op1->clone(mem_ctx, NULL),
                                                 field_name);
         result = do_comparison(mem_ctx, operation, e0, e1);

         if (cmp) {
            cmp = new(mem_ctx) ir_expression(join_op, cmp, result);
         } else {
            cmp = result;
         }
a846 3
   case GLSL_TYPE_IMAGE:
   case GLSL_TYPE_INTERFACE:
   case GLSL_TYPE_ATOMIC_UINT:
d851 4
d885 2
a886 2
                       operand_name,
                       parent_expr->operator_string(parent_expr->oper));
d897 1
a897 1
void
d909 1
a909 1
                       "be larger than gl_MaxTextureCoords (%u)",
d911 1
a911 36
   } else if (strcmp("gl_ClipDistance", name) == 0
              && size > state->Const.MaxClipPlanes) {
      /* From section 7.1 (Vertex Shader Special Variables) of the
       * GLSL 1.30 spec:
       *
       *   "The gl_ClipDistance array is predeclared as unsized and
       *   must be sized by the shader either redeclaring it with a
       *   size or indexing it only with integral constant
       *   expressions. ... The size can be at most
       *   gl_MaxClipDistances."
       */
      _mesa_glsl_error(&loc, state, "`gl_ClipDistance' array size cannot "
                       "be larger than gl_MaxClipDistances (%u)",
                       state->Const.MaxClipPlanes);
   }
}

/**
 * Create the constant 1, of a which is appropriate for incrementing and
 * decrementing values of the given GLSL type.  For example, if type is vec4,
 * this creates a constant value of 1.0 having type float.
 *
 * If the given type is invalid for increment and decrement operators, return
 * a floating point 1--the error will be detected later.
 */
static ir_rvalue *
constant_one_for_inc_dec(void *ctx, const glsl_type *type)
{
   switch (type->base_type) {
   case GLSL_TYPE_UINT:
      return new(ctx) ir_constant((unsigned) 1);
   case GLSL_TYPE_INT:
      return new(ctx) ir_constant(1);
   default:
   case GLSL_TYPE_FLOAT:
      return new(ctx) ir_constant(1.0f);
d913 1
d918 1
a918 16
                    struct _mesa_glsl_parse_state *state)
{
   return do_hir(instructions, state, true);
}

void
ast_expression::hir_no_rvalue(exec_list *instructions,
                              struct _mesa_glsl_parse_state *state)
{
   do_hir(instructions, state, false);
}

ir_rvalue *
ast_expression::do_hir(exec_list *instructions,
                       struct _mesa_glsl_parse_state *state,
                       bool needs_rvalue)
a984 4
   case ast_aggregate:
      assert(!"ast_aggregate: Should never get here.");
      break;

d989 3
a991 5
      error_emitted =
         do_assignment(instructions, state,
                       this->subexpressions[0]->non_lvalue_description,
                       op[0], op[1], &result, needs_rvalue, false,
                       this->subexpressions[0]->get_location());
d1013 1
a1013 1
                                      op[0], NULL);
d1024 2
a1025 2
                                    (this->oper == ast_mul),
                                    state, & loc);
d1029 1
a1029 1
                                      op[0], op[1]);
d1041 1
a1041 1
                                      op[0], op[1]);
d1047 3
a1049 1
       if (!state->check_bitwise_operations_allowed(&loc)) {
d1079 1
a1079 1
                                      op[0], op[1]);
d1098 10
a1107 13
           && !apply_implicit_conversion(op[1]->type, op[0], state))
          || (op[0]->type != op[1]->type)) {
         _mesa_glsl_error(& loc, state, "operands of `%s' must have the same "
                          "type", (this->oper == ast_equal) ? "==" : "!=");
         error_emitted = true;
      } else if ((op[0]->type->is_array() || op[1]->type->is_array()) &&
                 !state->check_version(120, 300, &loc,
                                       "array comparisons forbidden")) {
         error_emitted = true;
      } else if ((op[0]->type->contains_opaque() ||
                  op[1]->type->contains_opaque())) {
         _mesa_glsl_error(&loc, state, "opaque type comparisons forbidden");
         error_emitted = true;
d1111 1
a1111 1
         result = new(ctx) ir_constant(false);
d1113 2
a1114 2
         result = do_comparison(ctx, operations[this->oper], op[0], op[1]);
         assert(result->type == glsl_type::bool_type);
d1126 1
a1126 1
                                      op[0], op[1]);
d1133 3
a1135 2
      if (!state->check_bitwise_operations_allowed(&loc)) {
         error_emitted = true;
d1139 2
a1140 2
         _mesa_glsl_error(&loc, state, "operand of `~' must be an integer");
         error_emitted = true;
d1143 1
a1143 1
      type = error_emitted ? glsl_type::error_type : op[0]->type;
d1150 1
a1150 1
                                         "LHS", &error_emitted);
d1152 1
a1152 1
                                         "RHS", &error_emitted);
d1154 28
a1181 22
      if (rhs_instructions.is_empty()) {
         result = new(ctx) ir_expression(ir_binop_logic_and, op[0], op[1]);
         type = result->type;
      } else {
         ir_variable *const tmp = new(ctx) ir_variable(glsl_type::bool_type,
                                                       "and_tmp",
                                                       ir_var_temporary);
         instructions->push_tail(tmp);

         ir_if *const stmt = new(ctx) ir_if(op[0]);
         instructions->push_tail(stmt);

         stmt->then_instructions.append_list(&rhs_instructions);
         ir_dereference *const then_deref = new(ctx) ir_dereference_variable(tmp);
         ir_assignment *const then_assign =
            new(ctx) ir_assignment(then_deref, op[1]);
         stmt->then_instructions.push_tail(then_assign);

         ir_dereference *const else_deref = new(ctx) ir_dereference_variable(tmp);
         ir_assignment *const else_assign =
            new(ctx) ir_assignment(else_deref, new(ctx) ir_constant(false));
         stmt->else_instructions.push_tail(else_assign);
d1183 2
a1184 2
         result = new(ctx) ir_dereference_variable(tmp);
         type = tmp->type;
d1192 1
a1192 1
                                         "LHS", &error_emitted);
d1194 1
a1194 1
                                         "RHS", &error_emitted);
d1196 27
a1222 22
      if (rhs_instructions.is_empty()) {
         result = new(ctx) ir_expression(ir_binop_logic_or, op[0], op[1]);
         type = result->type;
      } else {
         ir_variable *const tmp = new(ctx) ir_variable(glsl_type::bool_type,
                                                       "or_tmp",
                                                       ir_var_temporary);
         instructions->push_tail(tmp);

         ir_if *const stmt = new(ctx) ir_if(op[0]);
         instructions->push_tail(stmt);

         ir_dereference *const then_deref = new(ctx) ir_dereference_variable(tmp);
         ir_assignment *const then_assign =
            new(ctx) ir_assignment(then_deref, new(ctx) ir_constant(true));
         stmt->then_instructions.push_tail(then_assign);

         stmt->else_instructions.append_list(&rhs_instructions);
         ir_dereference *const else_deref = new(ctx) ir_dereference_variable(tmp);
         ir_assignment *const else_assign =
            new(ctx) ir_assignment(else_deref, op[1]);
         stmt->else_instructions.push_tail(else_assign);
d1224 2
a1225 2
         result = new(ctx) ir_dereference_variable(tmp);
         type = tmp->type;
d1238 1
a1238 1
                                         &error_emitted);
d1240 1
a1240 1
                                         &error_emitted);
d1243 1
a1243 1
                                      op[0], op[1]);
d1248 1
a1248 1
                                         "operand", &error_emitted);
d1251 1
a1251 1
                                      op[0], NULL);
d1262 2
a1263 2
                                    (this->oper == ast_mul_assign),
                                    state, & loc);
d1266 1
a1266 1
                                                   op[0], op[1]);
d1268 4
a1271 6
      error_emitted =
         do_assignment(instructions, state,
                       this->subexpressions[0]->non_lvalue_description,
                       op[0]->clone(ctx, NULL), temp_rhs,
                       &result, needs_rvalue, false,
                       this->subexpressions[0]->get_location());
d1291 1
a1291 1
                                        op[0], op[1]);
d1293 4
a1296 6
      error_emitted =
         do_assignment(instructions, state,
                       this->subexpressions[0]->non_lvalue_description,
                       op[0]->clone(ctx, NULL), temp_rhs,
                       &result, needs_rvalue, false,
                       this->subexpressions[0]->get_location());
d1308 4
a1311 6
      error_emitted =
         do_assignment(instructions, state,
                       this->subexpressions[0]->non_lvalue_description,
                       op[0]->clone(ctx, NULL), temp_rhs,
                       &result, needs_rvalue, false,
                       this->subexpressions[0]->get_location());
d1324 4
a1327 6
      error_emitted =
         do_assignment(instructions, state,
                       this->subexpressions[0]->non_lvalue_description,
                       op[0]->clone(ctx, NULL), temp_rhs,
                       &result, needs_rvalue, false,
                       this->subexpressions[0]->get_location());
d1339 1
a1339 1
                                         "condition", &error_emitted);
d1362 8
a1369 8
          && !apply_implicit_conversion(op[2]->type, op[1], state))
          || (op[1]->type != op[2]->type)) {
         YYLTYPE loc = this->subexpressions[1]->get_location();

         _mesa_glsl_error(& loc, state, "second and third operands of ?: "
                          "operator must have matching types");
         error_emitted = true;
         type = glsl_type::error_type;
d1371 1
a1371 1
         type = op[1]->type;
d1379 4
a1382 5
      if (type->is_array() &&
          !state->check_version(120, 300, &loc,
                                "second and third operands of ?: operator "
                                "cannot be arrays")) {
         error_emitted = true;
d1390 24
a1413 24
          && else_instructions.is_empty()
          && (cond_val != NULL) && (then_val != NULL) && (else_val != NULL)) {
         result = (cond_val->value.b[0]) ? then_val : else_val;
      } else {
         ir_variable *const tmp =
            new(ctx) ir_variable(type, "conditional_tmp", ir_var_temporary);
         instructions->push_tail(tmp);

         ir_if *const stmt = new(ctx) ir_if(op[0]);
         instructions->push_tail(stmt);

         then_instructions.move_nodes_to(& stmt->then_instructions);
         ir_dereference *const then_deref =
            new(ctx) ir_dereference_variable(tmp);
         ir_assignment *const then_assign =
            new(ctx) ir_assignment(then_deref, op[1]);
         stmt->then_instructions.push_tail(then_assign);

         else_instructions.move_nodes_to(& stmt->else_instructions);
         ir_dereference *const else_deref =
            new(ctx) ir_dereference_variable(tmp);
         ir_assignment *const else_assign =
            new(ctx) ir_assignment(else_deref, op[2]);
         stmt->else_instructions.push_tail(else_assign);
d1415 1
a1415 1
         result = new(ctx) ir_dereference_variable(tmp);
a1421 3
      this->non_lvalue_description = (this->oper == ast_pre_inc)
         ? "pre-increment operation" : "pre-decrement operation";

d1423 4
a1426 1
      op[1] = constant_one_for_inc_dec(ctx, op[0]->type);
d1432 1
a1432 1
                                        op[0], op[1]);
d1434 4
a1437 6
      error_emitted =
         do_assignment(instructions, state,
                       this->subexpressions[0]->non_lvalue_description,
                       op[0]->clone(ctx, NULL), temp_rhs,
                       &result, needs_rvalue, false,
                       this->subexpressions[0]->get_location());
a1442 2
      this->non_lvalue_description = (this->oper == ast_post_inc)
         ? "post-increment operation" : "post-decrement operation";
d1444 4
a1447 1
      op[1] = constant_one_for_inc_dec(ctx, op[0]->type);
d1455 1
a1455 1
                                        op[0], op[1]);
d1462 3
a1464 7
      ir_rvalue *junk_rvalue;
      error_emitted =
         do_assignment(instructions, state,
                       this->subexpressions[0]->non_lvalue_description,
                       op[0]->clone(ctx, NULL), temp_rhs,
                       &junk_rvalue, false, false,
                       this->subexpressions[0]->get_location());
d1466 1
d1480 151
a1630 2
      result = _mesa_ast_array_index_to_hir(ctx, state, op[0], op[1],
                                            loc, index_loc);
d1632 2
a1633 2
      if (result->type->is_error())
         error_emitted = true;
d1651 3
a1653 1
         state->symbols->get_variable(this->primary_expression.identifier);
d1656 1
a1656 2
         var->data.used = true;
         result = new(ctx) ir_dereference_variable(var);
d1658 2
a1659 2
         _mesa_glsl_error(& loc, state, "`%s' undeclared",
                          this->primary_expression.identifier);
d1661 1
a1661 2
         result = ir_rvalue::error_value(ctx);
         error_emitted = true;
d1697 29
a1725 29
         /* If one of the operands of comma operator does not generate any
          * code, we want to emit a warning.  At each pass through the loop
          * previous_tail_pred will point to the last instruction in the
          * stream *before* processing the previous operand.  Naturally,
          * instructions->tail_pred will point to the last instruction in the
          * stream *after* processing the previous operand.  If the two
          * pointers match, then the previous operand had no effect.
          *
          * The warning behavior here differs slightly from GCC.  GCC will
          * only emit a warning if none of the left-hand operands have an
          * effect.  However, it will emit a warning for each.  I believe that
          * there are some cases in C (especially with GCC extensions) where
          * it is useful to have an intermediate step in a sequence have no
          * effect, but I don't think these cases exist in GLSL.  Either way,
          * it would be a giant hassle to replicate that behavior.
          */
         if (previous_tail_pred == instructions->tail_pred) {
            _mesa_glsl_warning(&previous_operand_loc, state,
                               "left-hand operand of comma expression has "
                               "no effect");
         }

         /* tail_pred is directly accessed instead of using the get_tail()
          * method for performance reasons.  get_tail() has extra code to
          * return NULL when the list is empty.  We don't care about that
          * here, so using tail_pred directly is fine.
          */
         previous_tail_pred = instructions->tail_pred;
         previous_operand_loc = ast->get_location();
d1727 1
a1727 1
         result = ast->hir(instructions, state);
d1737 1
a1737 1
   assert(result != NULL || !needs_rvalue);
d1739 1
a1739 1
   if (result && result->type->is_error() && !error_emitted)
d1748 1
a1748 1
                              struct _mesa_glsl_parse_state *state)
d1760 1
a1760 1
      expression->hir_no_rvalue(instructions, state);
d1770 1
a1770 1
                            struct _mesa_glsl_parse_state *state)
a1785 56
/**
 * Evaluate the given exec_node (which should be an ast_node representing
 * a single array dimension) and return its integer value.
 */
static unsigned
process_array_size(exec_node *node,
                   struct _mesa_glsl_parse_state *state)
{
   exec_list dummy_instructions;

   ast_node *array_size = exec_node_data(ast_node, node, link);
   ir_rvalue *const ir = array_size->hir(& dummy_instructions, state);
   YYLTYPE loc = array_size->get_location();

   if (ir == NULL) {
      _mesa_glsl_error(& loc, state,
                       "array size could not be resolved");
      return 0;
   }

   if (!ir->type->is_integer()) {
      _mesa_glsl_error(& loc, state,
                       "array size must be integer type");
      return 0;
   }

   if (!ir->type->is_scalar()) {
      _mesa_glsl_error(& loc, state,
                       "array size must be scalar type");
      return 0;
   }

   ir_constant *const size = ir->constant_expression_value();
   if (size == NULL) {
      _mesa_glsl_error(& loc, state, "array size must be a "
                       "constant valued expression");
      return 0;
   }

   if (size->value.i[0] <= 0) {
      _mesa_glsl_error(& loc, state, "array size must be > 0");
      return 0;
   }

   assert(size->type == ir->type);

   /* If the array size is const (and we've verified that
    * it is) then no instructions should have been emitted
    * when we converted it to HIR. If they were emitted,
    * then either the array size isn't const after all, or
    * we are emitting unnecessary instructions.
    */
   assert(dummy_instructions.is_empty());

   return size->value.u[0];
}
d1788 2
a1789 3
process_array_type(YYLTYPE *loc, const glsl_type *base,
                   ast_array_specifier *array_specifier,
                   struct _mesa_glsl_parse_state *state)
d1791 1
a1791 1
   const glsl_type *array_type = base;
d1793 1
a1793 2
   if (array_specifier != NULL) {
      if (base->is_array()) {
d1795 31
a1825 20
         /* From page 19 (page 25) of the GLSL 1.20 spec:
          *
          * "Only one-dimensional arrays may be declared."
          */
         if (!state->ARB_arrays_of_arrays_enable) {
            _mesa_glsl_error(loc, state,
                             "invalid array of `%s'"
                             "GL_ARB_arrays_of_arrays "
                             "required for defining arrays of arrays",
                             base->name);
            return glsl_type::error_type;
         }

         if (base->length == 0) {
            _mesa_glsl_error(loc, state,
                             "only the outermost array dimension can "
                             "be unsized",
                             base->name);
            return glsl_type::error_type;
         }
d1827 6
a1832 9

      for (exec_node *node = array_specifier->array_dimensions.tail_pred;
           !node->is_head_sentinel(); node = node->prev) {
         unsigned array_size = process_array_size(node, state);
         array_type = glsl_type::get_array_instance(array_type, array_size);
      }

      if (array_specifier->is_unsized_array)
         array_type = glsl_type::get_array_instance(array_type, 0);
d1835 1
a1835 1
   return array_type;
d1841 1
a1841 1
                              struct _mesa_glsl_parse_state *state) const
d1848 1
a1848 20
   YYLTYPE loc = this->get_location();
   type = process_array_type(&loc, type, this->array_specifier, state);

   return type;
}

const glsl_type *
ast_fully_specified_type::glsl_type(const char **name,
                                    struct _mesa_glsl_parse_state *state) const
{
   const struct glsl_type *type = this->specifier->glsl_type(name, state);

   if (type == NULL)
      return NULL;

   if (type->base_type == GLSL_TYPE_FLOAT
       && state->es_shader
       && state->stage == MESA_SHADER_FRAGMENT
       && this->qualifier.precision == ast_precision_none
       && state->symbols->get_variable("#default precision") == NULL) {
d1850 1
a1850 3
      _mesa_glsl_error(&loc, state,
                       "no precision specified this scope for type `%s'",
                       type->name);
d1856 6
a1861 11
/**
 * Determine whether a toplevel variable declaration declares a varying.  This
 * function operates by examining the variable's mode and the shader target,
 * so it correctly identifies linkage variables regardless of whether they are
 * declared using the deprecated "varying" syntax or the new "in/out" syntax.
 *
 * Passing a non-toplevel variable declaration (e.g. a function parameter) to
 * this function will produce undefined results.
 */
static bool
is_varying_var(ir_variable *var, gl_shader_stage target)
d1863 9
a1871 7
   switch (target) {
   case MESA_SHADER_VERTEX:
      return var->data.mode == ir_var_shader_out;
   case MESA_SHADER_FRAGMENT:
      return var->data.mode == ir_var_shader_in;
   default:
      return var->data.mode == ir_var_shader_out || var->data.mode == ir_var_shader_in;
a1872 1
}
d1874 4
d1879 2
a1880 39
/**
 * Matrix layout qualifiers are only allowed on certain types
 */
static void
validate_matrix_layout_for_type(struct _mesa_glsl_parse_state *state,
                                YYLTYPE *loc,
                                const glsl_type *type,
                                ir_variable *var)
{
   if (var && !var->is_in_uniform_block()) {
      /* Layout qualifiers may only apply to interface blocks and fields in
       * them.
       */
      _mesa_glsl_error(loc, state,
                       "uniform block layout qualifiers row_major and "
                       "column_major may not be applied to variables "
                       "outside of uniform blocks");
   } else if (!type->is_matrix()) {
      /* The OpenGL ES 3.0 conformance tests did not originally allow
       * matrix layout qualifiers on non-matrices.  However, the OpenGL
       * 4.4 and OpenGL ES 3.0 (revision TBD) specifications were
       * amended to specifically allow these layouts on all types.  Emit
       * a warning so that people know their code may not be portable.
       */
      _mesa_glsl_warning(loc, state,
                         "uniform block layout qualifiers row_major and "
                         "column_major applied to non-matrix types may "
                         "be rejected by older compilers");
   } else if (type->is_record()) {
      /* We allow 'layout(row_major)' on structure types because it's the only
       * way to get row-major layouts on matrices contained in structures.
       */
      _mesa_glsl_warning(loc, state,
                         "uniform block layout qualifiers row_major and "
                         "column_major applied to structure types is not "
                         "strictly conformant and may be rejected by other "
                         "compilers");
   }
}
d1882 2
a1883 7
static bool
validate_binding_qualifier(struct _mesa_glsl_parse_state *state,
                           YYLTYPE *loc,
                           ir_variable *var,
                           const ast_type_qualifier *qual)
{
   if (var->data.mode != ir_var_uniform) {
d1885 3
a1887 2
                       "the \"binding\" qualifier only applies to uniforms");
      return false;
d1890 8
a1897 4
   if (qual->binding < 0) {
      _mesa_glsl_error(loc, state, "binding values must be >= 0");
      return false;
   }
d1899 4
a1902 47
   const struct gl_context *const ctx = state->ctx;
   unsigned elements = var->type->is_array() ? var->type->length : 1;
   unsigned max_index = qual->binding + elements - 1;

   if (var->type->is_interface()) {
      /* UBOs.  From page 60 of the GLSL 4.20 specification:
       * "If the binding point for any uniform block instance is less than zero,
       *  or greater than or equal to the implementation-dependent maximum
       *  number of uniform buffer bindings, a compilation error will occur.
       *  When the binding identifier is used with a uniform block instanced as
       *  an array of size N, all elements of the array from binding through
       *  binding + N – 1 must be within this range."
       *
       * The implementation-dependent maximum is GL_MAX_UNIFORM_BUFFER_BINDINGS.
       */
      if (max_index >= ctx->Const.MaxUniformBufferBindings) {
         _mesa_glsl_error(loc, state, "layout(binding = %d) for %d UBOs exceeds "
                          "the maximum number of UBO binding points (%d)",
                          qual->binding, elements,
                          ctx->Const.MaxUniformBufferBindings);
         return false;
      }
   } else if (var->type->is_sampler() ||
              (var->type->is_array() && var->type->fields.array->is_sampler())) {
      /* Samplers.  From page 63 of the GLSL 4.20 specification:
       * "If the binding is less than zero, or greater than or equal to the
       *  implementation-dependent maximum supported number of units, a
       *  compilation error will occur. When the binding identifier is used
       *  with an array of size N, all elements of the array from binding
       *  through binding + N - 1 must be within this range."
       */
      unsigned limit = ctx->Const.Program[state->stage].MaxTextureImageUnits;

      if (max_index >= limit) {
         _mesa_glsl_error(loc, state, "layout(binding = %d) for %d samplers "
                          "exceeds the maximum number of texture image units "
                          "(%d)", qual->binding, elements, limit);

         return false;
      }
   } else if (var->type->contains_atomic()) {
      assert(ctx->Const.MaxAtomicBufferBindings <= MAX_COMBINED_ATOMIC_BUFFERS);
      if (unsigned(qual->binding) >= ctx->Const.MaxAtomicBufferBindings) {
         _mesa_glsl_error(loc, state, "layout(binding = %d) exceeds the "
                          " maximum number of atomic counter buffer bindings"
                          "(%d)", qual->binding,
                          ctx->Const.MaxAtomicBufferBindings);
d1904 4
a1907 1
         return false;
a1908 5
   } else {
      _mesa_glsl_error(loc, state,
                       "the \"binding\" qualifier only applies to uniform "
                       "blocks, samplers, atomic counters, or arrays thereof");
      return false;
d1911 13
a1923 2
   return true;
}
d1925 16
a1941 7
static glsl_interp_qualifier
interpret_interpolation_qualifier(const struct ast_type_qualifier *qual,
                                  ir_variable_mode mode,
                                  struct _mesa_glsl_parse_state *state,
                                  YYLTYPE *loc)
{
   glsl_interp_qualifier interpolation;
d1943 1
a1943 1
      interpolation = INTERP_QUALIFIER_FLAT;
d1945 1
a1945 3
      interpolation = INTERP_QUALIFIER_NOPERSPECTIVE;
   else if (qual->flags.q.smooth)
      interpolation = INTERP_QUALIFIER_SMOOTH;
d1947 1
a1947 1
      interpolation = INTERP_QUALIFIER_NONE;
d1949 6
a1954 6
   if (interpolation != INTERP_QUALIFIER_NONE) {
      if (mode != ir_var_shader_in && mode != ir_var_shader_out) {
         _mesa_glsl_error(loc, state,
                          "interpolation qualifier `%s' can only be applied to "
                          "shader inputs or outputs.",
                          interpolation_string(interpolation));
d1956 4
a1959 9
      }

      if ((state->stage == MESA_SHADER_VERTEX && mode == ir_var_shader_in) ||
          (state->stage == MESA_SHADER_FRAGMENT && mode == ir_var_shader_out)) {
         _mesa_glsl_error(loc, state,
                          "interpolation qualifier `%s' cannot be applied to "
                          "vertex shader inputs or fragment shader outputs",
                          interpolation_string(interpolation));
      }
d1962 56
a2017 454
   return interpolation;
}


static void
validate_explicit_location(const struct ast_type_qualifier *qual,
                           ir_variable *var,
                           struct _mesa_glsl_parse_state *state,
                           YYLTYPE *loc)
{
   bool fail = false;

   /* Checks for GL_ARB_explicit_uniform_location. */
   if (qual->flags.q.uniform) {
      if (!state->check_explicit_uniform_location_allowed(loc, var))
         return;

      const struct gl_context *const ctx = state->ctx;
      unsigned max_loc = qual->location + var->type->uniform_locations() - 1;

      /* ARB_explicit_uniform_location specification states:
       *
       *     "The explicitly defined locations and the generated locations
       *     must be in the range of 0 to MAX_UNIFORM_LOCATIONS minus one."
       *
       *     "Valid locations for default-block uniform variable locations
       *     are in the range of 0 to the implementation-defined maximum
       *     number of uniform locations."
       */
      if (qual->location < 0) {
         _mesa_glsl_error(loc, state,
                          "explicit location < 0 for uniform %s", var->name);
         return;
      }

      if (max_loc >= ctx->Const.MaxUserAssignableUniformLocations) {
         _mesa_glsl_error(loc, state, "location(s) consumed by uniform %s "
                          ">= MAX_UNIFORM_LOCATIONS (%u)", var->name,
                          ctx->Const.MaxUserAssignableUniformLocations);
         return;
      }

      var->data.explicit_location = true;
      var->data.location = qual->location;
      return;
   }

   /* Between GL_ARB_explicit_attrib_location an
    * GL_ARB_separate_shader_objects, the inputs and outputs of any shader
    * stage can be assigned explicit locations.  The checking here associates
    * the correct extension with the correct stage's input / output:
    *
    *                     input            output
    *                     -----            ------
    * vertex              explicit_loc     sso
    * geometry            sso              sso
    * fragment            sso              explicit_loc
    */
   switch (state->stage) {
   case MESA_SHADER_VERTEX:
      if (var->data.mode == ir_var_shader_in) {
         if (!state->check_explicit_attrib_location_allowed(loc, var))
            return;

         break;
      }

      if (var->data.mode == ir_var_shader_out) {
         if (!state->check_separate_shader_objects_allowed(loc, var))
            return;

         break;
      }

      fail = true;
      break;

   case MESA_SHADER_GEOMETRY:
      if (var->data.mode == ir_var_shader_in || var->data.mode == ir_var_shader_out) {
         if (!state->check_separate_shader_objects_allowed(loc, var))
            return;

         break;
      }

      fail = true;
      break;

   case MESA_SHADER_FRAGMENT:
      if (var->data.mode == ir_var_shader_in) {
         if (!state->check_separate_shader_objects_allowed(loc, var))
            return;

         break;
      }

      if (var->data.mode == ir_var_shader_out) {
         if (!state->check_explicit_attrib_location_allowed(loc, var))
            return;

         break;
      }

      fail = true;
      break;

   case MESA_SHADER_COMPUTE:
      _mesa_glsl_error(loc, state,
                       "compute shader variables cannot be given "
                       "explicit locations");
      return;
   };

   if (fail) {
      _mesa_glsl_error(loc, state,
                       "%s cannot be given an explicit location in %s shader",
                       mode_string(var),
      _mesa_shader_stage_to_string(state->stage));
   } else {
      var->data.explicit_location = true;

      /* This bit of silliness is needed because invalid explicit locations
       * are supposed to be flagged during linking.  Small negative values
       * biased by VERT_ATTRIB_GENERIC0 or FRAG_RESULT_DATA0 could alias
       * built-in values (e.g., -16+VERT_ATTRIB_GENERIC0 = VERT_ATTRIB_POS).
       * The linker needs to be able to differentiate these cases.  This
       * ensures that negative values stay negative.
       */
      if (qual->location >= 0) {
         switch (state->stage) {
         case MESA_SHADER_VERTEX:
            var->data.location = (var->data.mode == ir_var_shader_in)
               ? (qual->location + VERT_ATTRIB_GENERIC0)
               : (qual->location + VARYING_SLOT_VAR0);
            break;

         case MESA_SHADER_GEOMETRY:
            var->data.location = qual->location + VARYING_SLOT_VAR0;
            break;

         case MESA_SHADER_FRAGMENT:
            var->data.location = (var->data.mode == ir_var_shader_out)
               ? (qual->location + FRAG_RESULT_DATA0)
               : (qual->location + VARYING_SLOT_VAR0);
            break;
         case MESA_SHADER_COMPUTE:
            assert(!"Unexpected shader type");
            break;
         }
      } else {
         var->data.location = qual->location;
      }

      if (qual->flags.q.explicit_index) {
         /* From the GLSL 4.30 specification, section 4.4.2 (Output
          * Layout Qualifiers):
          *
          * "It is also a compile-time error if a fragment shader
          *  sets a layout index to less than 0 or greater than 1."
          *
          * Older specifications don't mandate a behavior; we take
          * this as a clarification and always generate the error.
          */
         if (qual->index < 0 || qual->index > 1) {
            _mesa_glsl_error(loc, state,
                             "explicit index may only be 0 or 1");
         } else {
            var->data.explicit_index = true;
            var->data.index = qual->index;
         }
      }
   }
}

static void
apply_image_qualifier_to_variable(const struct ast_type_qualifier *qual,
                                  ir_variable *var,
                                  struct _mesa_glsl_parse_state *state,
                                  YYLTYPE *loc)
{
   const glsl_type *base_type =
      (var->type->is_array() ? var->type->element_type() : var->type);

   if (base_type->is_image()) {
      if (var->data.mode != ir_var_uniform &&
          var->data.mode != ir_var_function_in) {
         _mesa_glsl_error(loc, state, "image variables may only be declared as "
                          "function parameters or uniform-qualified "
                          "global variables");
      }

      var->data.image.read_only |= qual->flags.q.read_only;
      var->data.image.write_only |= qual->flags.q.write_only;
      var->data.image.coherent |= qual->flags.q.coherent;
      var->data.image._volatile |= qual->flags.q._volatile;
      var->data.image.restrict_flag |= qual->flags.q.restrict_flag;
      var->data.read_only = true;

      if (qual->flags.q.explicit_image_format) {
         if (var->data.mode == ir_var_function_in) {
            _mesa_glsl_error(loc, state, "format qualifiers cannot be "
                             "used on image function parameters");
         }

         if (qual->image_base_type != base_type->sampler_type) {
            _mesa_glsl_error(loc, state, "format qualifier doesn't match the "
                             "base data type of the image");
         }

         var->data.image.format = qual->image_format;
      } else {
         if (var->data.mode == ir_var_uniform && !qual->flags.q.write_only) {
            _mesa_glsl_error(loc, state, "uniforms not qualified with "
                             "`writeonly' must have a format layout "
                             "qualifier");
         }

         var->data.image.format = GL_NONE;
      }
   }
}

static inline const char*
get_layout_qualifier_string(bool origin_upper_left, bool pixel_center_integer)
{
   if (origin_upper_left && pixel_center_integer)
      return "origin_upper_left, pixel_center_integer";
   else if (origin_upper_left)
      return "origin_upper_left";
   else if (pixel_center_integer)
      return "pixel_center_integer";
   else
      return " ";
}

static inline bool
is_conflicting_fragcoord_redeclaration(struct _mesa_glsl_parse_state *state,
                                       const struct ast_type_qualifier *qual)
{
   /* If gl_FragCoord was previously declared, and the qualifiers were
    * different in any way, return true.
    */
   if (state->fs_redeclares_gl_fragcoord) {
      return (state->fs_pixel_center_integer != qual->flags.q.pixel_center_integer
         || state->fs_origin_upper_left != qual->flags.q.origin_upper_left);
   }

   return false;
}

static void
apply_type_qualifier_to_variable(const struct ast_type_qualifier *qual,
                                 ir_variable *var,
                                 struct _mesa_glsl_parse_state *state,
                                 YYLTYPE *loc,
                                 bool is_parameter)
{
   STATIC_ASSERT(sizeof(qual->flags.q) <= sizeof(qual->flags.i));

   if (qual->flags.q.invariant) {
      if (var->data.used) {
         _mesa_glsl_error(loc, state,
                          "variable `%s' may not be redeclared "
                          "`invariant' after being used",
                          var->name);
      } else {
         var->data.invariant = 1;
      }
   }

   if (qual->flags.q.precise) {
      if (var->data.used) {
         _mesa_glsl_error(loc, state,
                          "variable `%s' may not be redeclared "
                          "`precise' after being used",
                          var->name);
      } else {
         var->data.precise = 1;
      }
   }

   if (qual->flags.q.constant || qual->flags.q.attribute
       || qual->flags.q.uniform
       || (qual->flags.q.varying && (state->stage == MESA_SHADER_FRAGMENT)))
      var->data.read_only = 1;

   if (qual->flags.q.centroid)
      var->data.centroid = 1;

   if (qual->flags.q.sample)
      var->data.sample = 1;

   if (state->stage == MESA_SHADER_GEOMETRY &&
       qual->flags.q.out && qual->flags.q.stream) {
      var->data.stream = qual->stream;
   }

   if (qual->flags.q.attribute && state->stage != MESA_SHADER_VERTEX) {
      var->type = glsl_type::error_type;
      _mesa_glsl_error(loc, state,
                       "`attribute' variables may not be declared in the "
                       "%s shader",
                       _mesa_shader_stage_to_string(state->stage));
   }

   /* Disallow layout qualifiers which may only appear on layout declarations. */
   if (qual->flags.q.prim_type) {
      _mesa_glsl_error(loc, state,
                       "Primitive type may only be specified on GS input or output "
                       "layout declaration, not on variables.");
   }

   /* Section 6.1.1 (Function Calling Conventions) of the GLSL 1.10 spec says:
    *
    *     "However, the const qualifier cannot be used with out or inout."
    *
    * The same section of the GLSL 4.40 spec further clarifies this saying:
    *
    *     "The const qualifier cannot be used with out or inout, or a
    *     compile-time error results."
    */
   if (is_parameter && qual->flags.q.constant && qual->flags.q.out) {
      _mesa_glsl_error(loc, state,
                       "`const' may not be applied to `out' or `inout' "
                       "function parameters");
   }

   /* If there is no qualifier that changes the mode of the variable, leave
    * the setting alone.
    */
   if (qual->flags.q.in && qual->flags.q.out)
      var->data.mode = ir_var_function_inout;
   else if (qual->flags.q.in)
      var->data.mode = is_parameter ? ir_var_function_in : ir_var_shader_in;
   else if (qual->flags.q.attribute
	    || (qual->flags.q.varying && (state->stage == MESA_SHADER_FRAGMENT)))
      var->data.mode = ir_var_shader_in;
   else if (qual->flags.q.out)
      var->data.mode = is_parameter ? ir_var_function_out : ir_var_shader_out;
   else if (qual->flags.q.varying && (state->stage == MESA_SHADER_VERTEX))
      var->data.mode = ir_var_shader_out;
   else if (qual->flags.q.uniform)
      var->data.mode = ir_var_uniform;

   if (!is_parameter && is_varying_var(var, state->stage)) {
      /* User-defined ins/outs are not permitted in compute shaders. */
      if (state->stage == MESA_SHADER_COMPUTE) {
         _mesa_glsl_error(loc, state,
                          "user-defined input and output variables are not "
                          "permitted in compute shaders");
      }

      /* This variable is being used to link data between shader stages (in
       * pre-glsl-1.30 parlance, it's a "varying").  Check that it has a type
       * that is allowed for such purposes.
       *
       * From page 25 (page 31 of the PDF) of the GLSL 1.10 spec:
       *
       *     "The varying qualifier can be used only with the data types
       *     float, vec2, vec3, vec4, mat2, mat3, and mat4, or arrays of
       *     these."
       *
       * This was relaxed in GLSL version 1.30 and GLSL ES version 3.00.  From
       * page 31 (page 37 of the PDF) of the GLSL 1.30 spec:
       *
       *     "Fragment inputs can only be signed and unsigned integers and
       *     integer vectors, float, floating-point vectors, matrices, or
       *     arrays of these. Structures cannot be input.
       *
       * Similar text exists in the section on vertex shader outputs.
       *
       * Similar text exists in the GLSL ES 3.00 spec, except that the GLSL ES
       * 3.00 spec allows structs as well.  Varying structs are also allowed
       * in GLSL 1.50.
       */
      switch (var->type->get_scalar_type()->base_type) {
      case GLSL_TYPE_FLOAT:
         /* Ok in all GLSL versions */
         break;
      case GLSL_TYPE_UINT:
      case GLSL_TYPE_INT:
         if (state->is_version(130, 300))
            break;
         _mesa_glsl_error(loc, state,
                          "varying variables must be of base type float in %s",
                          state->get_version_string());
         break;
      case GLSL_TYPE_STRUCT:
         if (state->is_version(150, 300))
            break;
         _mesa_glsl_error(loc, state,
                          "varying variables may not be of type struct");
         break;
      default:
         _mesa_glsl_error(loc, state, "illegal type for a varying variable");
         break;
      }
   }

   if (state->all_invariant && (state->current_function == NULL)) {
      switch (state->stage) {
      case MESA_SHADER_VERTEX:
         if (var->data.mode == ir_var_shader_out)
            var->data.invariant = true;
	      break;
      case MESA_SHADER_GEOMETRY:
         if ((var->data.mode == ir_var_shader_in)
             || (var->data.mode == ir_var_shader_out))
            var->data.invariant = true;
         break;
      case MESA_SHADER_FRAGMENT:
         if (var->data.mode == ir_var_shader_in)
            var->data.invariant = true;
         break;
      case MESA_SHADER_COMPUTE:
         /* Invariance isn't meaningful in compute shaders. */
         break;
      }
   }

   var->data.interpolation =
      interpret_interpolation_qualifier(qual, (ir_variable_mode) var->data.mode,
                                        state, loc);

   var->data.pixel_center_integer = qual->flags.q.pixel_center_integer;
   var->data.origin_upper_left = qual->flags.q.origin_upper_left;
   if ((qual->flags.q.origin_upper_left || qual->flags.q.pixel_center_integer)
       && (strcmp(var->name, "gl_FragCoord") != 0)) {
      const char *const qual_string = (qual->flags.q.origin_upper_left)
         ? "origin_upper_left" : "pixel_center_integer";

      _mesa_glsl_error(loc, state,
		       "layout qualifier `%s' can only be applied to "
		       "fragment shader input `gl_FragCoord'",
		       qual_string);
   }

   if (var->name != NULL && strcmp(var->name, "gl_FragCoord") == 0) {

      /* Section 4.3.8.1, page 39 of GLSL 1.50 spec says:
       *
       *    "Within any shader, the first redeclarations of gl_FragCoord
       *     must appear before any use of gl_FragCoord."
       *
       * Generate a compiler error if above condition is not met by the
       * fragment shader.
       */
      ir_variable *earlier = state->symbols->get_variable("gl_FragCoord");
      if (earlier != NULL &&
          earlier->data.used &&
          !state->fs_redeclares_gl_fragcoord) {
         _mesa_glsl_error(loc, state,
                          "gl_FragCoord used before its first redeclaration "
                          "in fragment shader");
a2018 39

      /* Make sure all gl_FragCoord redeclarations specify the same layout
       * qualifiers.
       */
      if (is_conflicting_fragcoord_redeclaration(state, qual)) {
         const char *const qual_string =
            get_layout_qualifier_string(qual->flags.q.origin_upper_left,
                                        qual->flags.q.pixel_center_integer);

         const char *const state_string =
            get_layout_qualifier_string(state->fs_origin_upper_left,
                                        state->fs_pixel_center_integer);

         _mesa_glsl_error(loc, state,
                          "gl_FragCoord redeclared with different layout "
                          "qualifiers (%s) and (%s) ",
                          state_string,
                          qual_string);
      }
      state->fs_origin_upper_left = qual->flags.q.origin_upper_left;
      state->fs_pixel_center_integer = qual->flags.q.pixel_center_integer;
      state->fs_redeclares_gl_fragcoord_with_no_layout_qualifiers =
         !qual->flags.q.origin_upper_left && !qual->flags.q.pixel_center_integer;
      state->fs_redeclares_gl_fragcoord =
         state->fs_origin_upper_left ||
         state->fs_pixel_center_integer ||
         state->fs_redeclares_gl_fragcoord_with_no_layout_qualifiers;
   }

   if (qual->flags.q.explicit_location) {
      validate_explicit_location(qual, var, state, loc);
   } else if (qual->flags.q.explicit_index) {
      _mesa_glsl_error(loc, state, "explicit index requires explicit location");
   }

   if (qual->flags.q.explicit_binding &&
       validate_binding_qualifier(state, loc, var, qual)) {
      var->data.explicit_binding = true;
      var->data.binding = qual->binding;
d2021 5
a2025 23
   if (var->type->contains_atomic()) {
      if (var->data.mode == ir_var_uniform) {
         if (var->data.explicit_binding) {
            unsigned *offset =
               &state->atomic_counter_offsets[var->data.binding];

            if (*offset % ATOMIC_COUNTER_SIZE)
               _mesa_glsl_error(loc, state,
                                "misaligned atomic counter offset");

            var->data.atomic.offset = *offset;
            *offset += var->type->atomic_size();

         } else {
            _mesa_glsl_error(loc, state,
                             "atomic counters require explicit binding point");
         }
      } else if (var->data.mode != ir_var_function_in) {
         _mesa_glsl_error(loc, state, "atomic counters may only be declared as "
                          "function parameters or uniform-qualified "
                          "global variables");
      }
   }
a2032 30

   /* Validate auxiliary storage qualifiers */

   /* From section 4.3.4 of the GLSL 1.30 spec:
    *    "It is an error to use centroid in in a vertex shader."
    *
    * From section 4.3.4 of the GLSL ES 3.00 spec:
    *    "It is an error to use centroid in or interpolation qualifiers in
    *    a vertex shader input."
    */

   /* Section 4.3.6 of the GLSL 1.30 specification states:
    * "It is an error to use centroid out in a fragment shader."
    *
    * The GL_ARB_shading_language_420pack extension specification states:
    * "It is an error to use auxiliary storage qualifiers or interpolation
    *  qualifiers on an output in a fragment shader."
    */
   if (qual->flags.q.sample && (!is_varying_var(var, state->stage) || uses_deprecated_qualifier)) {
      _mesa_glsl_error(loc, state,
                       "sample qualifier may only be used on `in` or `out` "
                       "variables between shader stages");
   }
   if (qual->flags.q.centroid && !is_varying_var(var, state->stage)) {
      _mesa_glsl_error(loc, state,
                       "centroid qualifier may only be used with `in', "
                       "`out' or `varying' variables between shader stages");
   }


a2042 1
    *    GL_ARB_conservative_depth
d2055 1
a2055 1
   if (qual->has_layout() && uses_deprecated_qualifier) {
d2057 7
a2063 7
         _mesa_glsl_warning(loc, state,
                            "`layout' qualifier may not be used with "
                            "`attribute' or `varying'");
      } else {
         _mesa_glsl_error(loc, state,
                          "`layout' qualifier may not be used with "
                          "`attribute' or `varying'");
d2075 1
a2075 2
       && !state->AMD_conservative_depth_enable
       && !state->ARB_conservative_depth_enable) {
d2077 2
a2078 3
                        "extension GL_AMD_conservative_depth or "
                        "GL_ARB_conservative_depth must be enabled "
                        "to use depth layout qualifiers");
d2091 1
a2091 1
      var->data.depth_layout = ir_depth_layout_any;
d2093 1
a2093 1
      var->data.depth_layout = ir_depth_layout_greater;
d2095 1
a2095 1
      var->data.depth_layout = ir_depth_layout_less;
d2097 1
a2097 1
       var->data.depth_layout = ir_depth_layout_unchanged;
d2099 1
a2099 17
       var->data.depth_layout = ir_depth_layout_none;

   if (qual->flags.q.std140 ||
       qual->flags.q.packed ||
       qual->flags.q.shared) {
      _mesa_glsl_error(loc, state,
                       "uniform block layout qualifiers std140, packed, and "
                       "shared can only be applied to uniform blocks, not "
                       "members");
   }

   if (qual->flags.q.row_major || qual->flags.q.column_major) {
      validate_matrix_layout_for_type(state, loc, var->type, var);
   }

   if (var->type->contains_image())
      apply_image_qualifier_to_variable(qual, var, state, loc);
d2113 3
a2115 4
static ir_variable *
get_variable_being_redeclared(ir_variable *var, YYLTYPE loc,
                              struct _mesa_glsl_parse_state *state,
                              bool allow_all_redeclarations)
d2123 1
a2123 1
   ir_variable *earlier = state->symbols->get_variable(var->name);
d2126 1
a2126 1
       !state->symbols->name_declared_this_scope(var->name))) {
d2131 2
d2139 2
a2140 1
   if (earlier->type->is_unsized_array() && var->type->is_array()
d2149 4
a2152 4
      if ((size > 0) && (size <= earlier->data.max_array_access)) {
         _mesa_glsl_error(& loc, state, "array size must be > %u due to "
                          "previous access",
                          earlier->data.max_array_access);
d2158 4
a2161 5
   } else if ((state->ARB_fragment_coord_conventions_enable ||
              state->is_version(150, 0))
              && strcmp(var->name, "gl_FragCoord") == 0
              && earlier->type == var->type
              && earlier->data.mode == var->data.mode) {
d2165 2
a2166 2
      earlier->data.origin_upper_left = var->data.origin_upper_left;
      earlier->data.pixel_center_integer = var->data.pixel_center_integer;
d2178 10
a2187 10
   } else if (state->is_version(130, 0)
              && (strcmp(var->name, "gl_FrontColor") == 0
                  || strcmp(var->name, "gl_BackColor") == 0
                  || strcmp(var->name, "gl_FrontSecondaryColor") == 0
                  || strcmp(var->name, "gl_BackSecondaryColor") == 0
                  || strcmp(var->name, "gl_Color") == 0
                  || strcmp(var->name, "gl_SecondaryColor") == 0)
              && earlier->type == var->type
              && earlier->data.mode == var->data.mode) {
      earlier->data.interpolation = var->data.interpolation;
d2190 4
a2193 5
   } else if ((state->AMD_conservative_depth_enable ||
               state->ARB_conservative_depth_enable)
              && strcmp(var->name, "gl_FragDepth") == 0
              && earlier->type == var->type
              && earlier->data.mode == var->data.mode) {
d2199 4
a2202 4
      if (earlier->data.used) {
         _mesa_glsl_error(&loc, state,
                          "the first redeclaration of gl_FragDepth "
                          "must appear before any use of gl_FragDepth");
d2206 8
a2213 8
      if (earlier->data.depth_layout != ir_depth_layout_none
          && earlier->data.depth_layout != var->data.depth_layout) {
            _mesa_glsl_error(&loc, state,
                             "gl_FragDepth: depth layout is declared here "
                             "as '%s, but it was previously declared as "
                             "'%s'",
                             depth_layout_string(var->data.depth_layout),
                             depth_layout_string(earlier->data.depth_layout));
d2216 1
a2216 1
      earlier->data.depth_layout = var->data.depth_layout;
a2217 10
   } else if (allow_all_redeclarations) {
      if (earlier->data.mode != var->data.mode) {
         _mesa_glsl_error(&loc, state,
                          "redeclaration of `%s' with incorrect qualifiers",
                          var->name);
      } else if (earlier->type != var->type) {
         _mesa_glsl_error(&loc, state,
                          "redeclaration of `%s' has incorrect type",
                          var->name);
      }
d2219 1
a2219 1
      _mesa_glsl_error(&loc, state, "`%s' redeclared", var->name);
d2244 4
a2247 3
   if (var->data.mode == ir_var_uniform) {
      state->check_version(120, 0, &initializer_loc,
                           "cannot initialize uniforms");
d2250 1
a2250 7
   /* From section 4.1.7 of the GLSL 4.40 spec:
    *
    *    "Opaque variables [...] are initialized only through the
    *     OpenGL API; they cannot be declared with an initializer in a
    *     shader."
    */
   if (var->type->contains_opaque()) {
d2252 1
a2252 1
                       "cannot initialize opaque variable");
d2255 1
a2255 1
   if ((var->data.mode == ir_var_shader_in) && (state->current_function == NULL)) {
d2258 2
a2259 2
		       _mesa_shader_stage_to_string(state->stage),
		       (state->stage == MESA_SHADER_VERTEX)
a2262 7
   /* If the initializer is an ast_aggregate_initializer, recursively store
    * type information from the LHS into it, so that its hir() function can do
    * type checking.
    */
   if (decl->initializer->oper == ast_aggregate)
      _mesa_ast_set_aggregate_type(var->type, decl->initializer);

d2264 2
a2265 1
   ir_rvalue *rhs = decl->initializer->hir(initializer_instructions, state);
d2272 1
a2272 2
      ir_rvalue *new_rhs = validate_assignment(state, initializer_loc,
                                               var->type, rhs, true);
d2274 1
a2274 1
         rhs = new_rhs;
d2276 25
a2300 29
         ir_constant *constant_value = rhs->constant_expression_value();
         if (!constant_value) {
            /* If ARB_shading_language_420pack is enabled, initializers of
             * const-qualified local variables do not have to be constant
             * expressions. Const-qualified global variables must still be
             * initialized with constant expressions.
             */
            if (!state->ARB_shading_language_420pack_enable
                || state->current_function == NULL) {
               _mesa_glsl_error(& initializer_loc, state,
                                "initializer of %s variable `%s' must be a "
                                "constant expression",
                                (type->qualifier.flags.q.constant)
                                ? "const" : "uniform",
                                decl->identifier);
               if (var->type->is_numeric()) {
                  /* Reduce cascading errors. */
                  var->constant_value = ir_constant::zero(state, var->type);
               }
            }
         } else {
            rhs = constant_value;
            var->constant_value = constant_value;
         }
      } else {
         if (var->type->is_numeric()) {
            /* Reduce cascading errors. */
            var->constant_value = ir_constant::zero(state, var->type);
         }
d2305 1
a2305 1
      bool temp = var->data.read_only;
d2307 1
a2307 1
         var->data.read_only = false;
d2313 4
a2316 7
         do_assignment(initializer_instructions, state,
                       NULL,
                       lhs, rhs,
                       &result, true,
                       true,
                       type->get_location());
         initializer_type = result->type;
d2318 1
a2318 4
         initializer_type = rhs->type;

      var->constant_initializer = rhs->constant_expression_value();
      var->data.has_initializer = true;
d2342 1
a2342 1
      var->data.read_only = temp;
a2347 112

/**
 * Do additional processing necessary for geometry shader input declarations
 * (this covers both interface blocks arrays and bare input variables).
 */
static void
handle_geometry_shader_input_decl(struct _mesa_glsl_parse_state *state,
                                  YYLTYPE loc, ir_variable *var)
{
   unsigned num_vertices = 0;
   if (state->gs_input_prim_type_specified) {
      num_vertices = vertices_per_prim(state->in_qualifier->prim_type);
   }

   /* Geometry shader input variables must be arrays.  Caller should have
    * reported an error for this.
    */
   if (!var->type->is_array()) {
      assert(state->error);

      /* To avoid cascading failures, short circuit the checks below. */
      return;
   }

   if (var->type->is_unsized_array()) {
      /* Section 4.3.8.1 (Input Layout Qualifiers) of the GLSL 1.50 spec says:
       *
       *   All geometry shader input unsized array declarations will be
       *   sized by an earlier input layout qualifier, when present, as per
       *   the following table.
       *
       * Followed by a table mapping each allowed input layout qualifier to
       * the corresponding input length.
       */
      if (num_vertices != 0)
         var->type = glsl_type::get_array_instance(var->type->fields.array,
                                                   num_vertices);
   } else {
      /* Section 4.3.8.1 (Input Layout Qualifiers) of the GLSL 1.50 spec
       * includes the following examples of compile-time errors:
       *
       *   // code sequence within one shader...
       *   in vec4 Color1[];    // size unknown
       *   ...Color1.length()...// illegal, length() unknown
       *   in vec4 Color2[2];   // size is 2
       *   ...Color1.length()...// illegal, Color1 still has no size
       *   in vec4 Color3[3];   // illegal, input sizes are inconsistent
       *   layout(lines) in;    // legal, input size is 2, matching
       *   in vec4 Color4[3];   // illegal, contradicts layout
       *   ...
       *
       * To detect the case illustrated by Color3, we verify that the size of
       * an explicitly-sized array matches the size of any previously declared
       * explicitly-sized array.  To detect the case illustrated by Color4, we
       * verify that the size of an explicitly-sized array is consistent with
       * any previously declared input layout.
       */
      if (num_vertices != 0 && var->type->length != num_vertices) {
         _mesa_glsl_error(&loc, state,
                          "geometry shader input size contradicts previously"
                          " declared layout (size is %u, but layout requires a"
                          " size of %u)", var->type->length, num_vertices);
      } else if (state->gs_input_size != 0 &&
                 var->type->length != state->gs_input_size) {
         _mesa_glsl_error(&loc, state,
                          "geometry shader input sizes are "
                          "inconsistent (size is %u, but a previous "
                          "declaration has size %u)",
                          var->type->length, state->gs_input_size);
      } else {
         state->gs_input_size = var->type->length;
      }
   }
}


void
validate_identifier(const char *identifier, YYLTYPE loc,
                    struct _mesa_glsl_parse_state *state)
{
   /* From page 15 (page 21 of the PDF) of the GLSL 1.10 spec,
    *
    *   "Identifiers starting with "gl_" are reserved for use by
    *   OpenGL, and may not be declared in a shader as either a
    *   variable or a function."
    */
   if (is_gl_identifier(identifier)) {
      _mesa_glsl_error(&loc, state,
                       "identifier `%s' uses reserved `gl_' prefix",
                       identifier);
   } else if (strstr(identifier, "__")) {
      /* From page 14 (page 20 of the PDF) of the GLSL 1.10
       * spec:
       *
       *     "In addition, all identifiers containing two
       *      consecutive underscores (__) are reserved as
       *      possible future keywords."
       *
       * The intention is that names containing __ are reserved for internal
       * use by the implementation, and names prefixed with GL_ are reserved
       * for use by Khronos.  Names simply containing __ are dangerous to use,
       * but should be allowed.
       *
       * A future version of the GLSL specification will clarify this.
       */
      _mesa_glsl_warning(&loc, state,
                         "identifier `%s' uses reserved `__' string",
                         identifier);
   }
}


d2350 1
a2350 1
                         struct _mesa_glsl_parse_state *state)
d2373 3
a2375 3
         _mesa_glsl_error(& loc, state,
                          "all uses of `invariant' keyword must be at global "
                          "scope");
d2379 29
a2407 22
         assert(decl->array_specifier == NULL);
         assert(decl->initializer == NULL);

         ir_variable *const earlier =
            state->symbols->get_variable(decl->identifier);
         if (earlier == NULL) {
            _mesa_glsl_error(& loc, state,
                             "undeclared variable `%s' cannot be marked "
                             "invariant", decl->identifier);
         } else if (!is_varying_var(earlier, state->stage)) {
            _mesa_glsl_error(&loc, state,
                             "`%s' cannot be marked invariant; interfaces between "
                             "shader stages only.", decl->identifier);
         } else if (earlier->data.used) {
            _mesa_glsl_error(& loc, state,
                            "variable `%s' may not be redeclared "
                            "`invariant' after being used",
                            earlier->name);
         } else {
            earlier->data.invariant = true;
         }
      }
a2413 36
   if (this->precise) {
      assert(this->type == NULL);

      foreach_list_typed (ast_declaration, decl, link, &this->declarations) {
         assert(decl->array_specifier == NULL);
         assert(decl->initializer == NULL);

         ir_variable *const earlier =
            state->symbols->get_variable(decl->identifier);
         if (earlier == NULL) {
            _mesa_glsl_error(& loc, state,
                             "undeclared variable `%s' cannot be marked "
                             "precise", decl->identifier);
         } else if (state->current_function != NULL &&
                    !state->symbols->name_declared_this_scope(decl->identifier)) {
            /* Note: we have to check if we're in a function, since
             * builtins are treated as having come from another scope.
             */
            _mesa_glsl_error(& loc, state,
                             "variable `%s' from an outer scope may not be "
                             "redeclared `precise' in this scope",
                             earlier->name);
         } else if (earlier->data.used) {
            _mesa_glsl_error(& loc, state,
                             "variable `%s' may not be redeclared "
                             "`precise' after being used",
                             earlier->name);
         } else {
            earlier->data.precise = true;
         }
      }

      /* Precise redeclarations do not have r-values either. */
      return NULL;
   }

a2415 1
   assert(!this->precise);
d2422 1
a2422 13
   decl_type = this->type->glsl_type(& type_name, state);

   /* An offset-qualified atomic counter declaration sets the default
    * offset for the next declaration within the same atomic counter
    * buffer.
    */
   if (decl_type && decl_type->contains_atomic()) {
      if (type->qualifier.flags.q.explicit_binding &&
          type->qualifier.flags.q.explicit_offset)
         state->atomic_counter_offsets[type->qualifier.binding] =
            type->qualifier.offset;
   }

d2424 8
a2431 55
      /* If there is no structure involved in the program text, there are two
       * possible scenarios:
       *
       * - The program text contained something like 'vec4;'.  This is an
       *   empty declaration.  It is valid but weird.  Emit a warning.
       *
       * - The program text contained something like 'S;' and 'S' is not the
       *   name of a known structure type.  This is both invalid and weird.
       *   Emit an error.
       *
       * - The program text contained something like 'mediump float;'
       *   when the programmer probably meant 'precision mediump
       *   float;' Emit a warning with a description of what they
       *   probably meant to do.
       *
       * Note that if decl_type is NULL and there is a structure involved,
       * there must have been some sort of error with the structure.  In this
       * case we assume that an error was already generated on this line of
       * code for the structure.  There is no need to generate an additional,
       * confusing error.
       */
      assert(this->type->specifier->structure == NULL || decl_type != NULL
	     || state->error);

      if (decl_type == NULL) {
         _mesa_glsl_error(&loc, state,
                          "invalid type `%s' in empty declaration",
                          type_name);
      } else if (decl_type->base_type == GLSL_TYPE_ATOMIC_UINT) {
         /* Empty atomic counter declarations are allowed and useful
          * to set the default offset qualifier.
          */
         return NULL;
      } else if (this->type->qualifier.precision != ast_precision_none) {
         if (this->type->specifier->structure != NULL) {
            _mesa_glsl_error(&loc, state,
                             "precision qualifiers can't be applied "
                             "to structures");
         } else {
            static const char *const precision_names[] = {
               "highp",
               "highp",
               "mediump",
               "lowp"
            };

            _mesa_glsl_warning(&loc, state,
                               "empty declaration with precision qualifier, "
                               "to set the default precision, use "
                               "`precision %s %s;'",
                               precision_names[this->type->qualifier.precision],
                               type_name);
         }
      } else if (this->type->specifier->structure == NULL) {
         _mesa_glsl_warning(&loc, state, "empty declaration");
d2444 17
a2460 10
         if (type_name != NULL) {
            _mesa_glsl_error(& loc, state,
                             "invalid type `%s' in declaration of `%s'",
                             type_name, decl->identifier);
         } else {
            _mesa_glsl_error(& loc, state,
                             "invalid type in declaration of `%s'",
                             decl->identifier);
         }
         continue;
a2462 3
      var_type = process_array_type(&loc, decl_type, decl->array_specifier,
                                    state);

a2464 20
      /* The 'varying in' and 'varying out' qualifiers can only be used with
       * ARB_geometry_shader4 and EXT_geometry_shader4, which we don't support
       * yet.
       */
      if (this->type->qualifier.flags.q.varying) {
         if (this->type->qualifier.flags.q.in) {
            _mesa_glsl_error(& loc, state,
                             "`varying in' qualifier in declaration of "
                             "`%s' only valid for geometry shaders using "
                             "ARB_geometry_shader4 or EXT_geometry_shader4",
                             decl->identifier);
         } else if (this->type->qualifier.flags.q.out) {
            _mesa_glsl_error(& loc, state,
                             "`varying out' qualifier in declaration of "
                             "`%s' only valid for geometry shaders using "
                             "ARB_geometry_shader4 or EXT_geometry_shader4",
                             decl->identifier);
         }
      }

d2468 1
a2468 1
       *     attribute, uniform, or varying. Only one may be
d2473 2
a2474 2
       * This is relaxed in GLSL 1.30 and GLSL ES 3.00.  It is also relaxed by
       * any extension that adds the 'layout' keyword.
d2476 16
a2491 17
      if (!state->is_version(130, 300)
          && !state->has_explicit_attrib_location()
          && !state->has_separate_shader_objects()
          && !state->ARB_fragment_coord_conventions_enable) {
         if (this->type->qualifier.flags.q.out) {
            _mesa_glsl_error(& loc, state,
                             "`out' qualifier in declaration of `%s' "
                             "only valid for function parameters in %s",
                             decl->identifier, state->get_version_string());
         }
         if (this->type->qualifier.flags.q.in) {
            _mesa_glsl_error(& loc, state,
                             "`in' qualifier in declaration of `%s' "
                             "only valid for function parameters in %s",
                             decl->identifier, state->get_version_string());
         }
         /* FINISHME: Test for other invalid qualifiers. */
d2495 1
a2495 1
				       & loc, false);
d2498 17
a2514 5
         if (!is_varying_var(var, state->stage)) {
            _mesa_glsl_error(&loc, state,
                             "`%s' cannot be marked invariant; interfaces between "
                             "shader stages only", var->name);
         }
d2518 2
a2519 2
         const char *mode = NULL;
         const char *extra = "";
d2521 91
a2611 99
         /* There is no need to check for 'inout' here because the parser will
          * only allow that in function parameter lists.
          */
         if (this->type->qualifier.flags.q.attribute) {
            mode = "attribute";
         } else if (this->type->qualifier.flags.q.uniform) {
            mode = "uniform";
         } else if (this->type->qualifier.flags.q.varying) {
            mode = "varying";
         } else if (this->type->qualifier.flags.q.in) {
            mode = "in";
            extra = " or in function parameter list";
         } else if (this->type->qualifier.flags.q.out) {
            mode = "out";
            extra = " or in function parameter list";
         }

         if (mode) {
            _mesa_glsl_error(& loc, state,
                             "%s variable `%s' must be declared at "
                             "global scope%s",
                             mode, var->name, extra);
         }
      } else if (var->data.mode == ir_var_shader_in) {
         var->data.read_only = true;

         if (state->stage == MESA_SHADER_VERTEX) {
            bool error_emitted = false;

            /* From page 31 (page 37 of the PDF) of the GLSL 1.50 spec:
             *
             *    "Vertex shader inputs can only be float, floating-point
             *    vectors, matrices, signed and unsigned integers and integer
             *    vectors. Vertex shader inputs can also form arrays of these
             *    types, but not structures."
             *
             * From page 31 (page 27 of the PDF) of the GLSL 1.30 spec:
             *
             *    "Vertex shader inputs can only be float, floating-point
             *    vectors, matrices, signed and unsigned integers and integer
             *    vectors. They cannot be arrays or structures."
             *
             * From page 23 (page 29 of the PDF) of the GLSL 1.20 spec:
             *
             *    "The attribute qualifier can be used only with float,
             *    floating-point vectors, and matrices. Attribute variables
             *    cannot be declared as arrays or structures."
             *
             * From page 33 (page 39 of the PDF) of the GLSL ES 3.00 spec:
             *
             *    "Vertex shader inputs can only be float, floating-point
             *    vectors, matrices, signed and unsigned integers and integer
             *    vectors. Vertex shader inputs cannot be arrays or
             *    structures."
             */
            const glsl_type *check_type = var->type;
            while (check_type->is_array())
               check_type = check_type->element_type();

            switch (check_type->base_type) {
            case GLSL_TYPE_FLOAT:
            break;
            case GLSL_TYPE_UINT:
            case GLSL_TYPE_INT:
               if (state->is_version(120, 300))
                  break;
            /* FALLTHROUGH */
            default:
               _mesa_glsl_error(& loc, state,
                                "vertex shader input / attribute cannot have "
                                "type %s`%s'",
                                var->type->is_array() ? "array of " : "",
                                check_type->name);
               error_emitted = true;
            }

            if (!error_emitted && var->type->is_array() &&
                !state->check_version(150, 0, &loc,
                                      "vertex shader input / attribute "
                                      "cannot have array type")) {
               error_emitted = true;
            }
         } else if (state->stage == MESA_SHADER_GEOMETRY) {
            /* From section 4.3.4 (Inputs) of the GLSL 1.50 spec:
             *
             *     Geometry shader input variables get the per-vertex values
             *     written out by vertex shader output variables of the same
             *     names. Since a geometry shader operates on a set of
             *     vertices, each input varying variable (or input block, see
             *     interface blocks below) needs to be declared as an array.
             */
            if (!var->type->is_array()) {
               _mesa_glsl_error(&loc, state,
                                "geometry shader inputs must be arrays");
            }

            handle_geometry_shader_input_decl(state, loc, var);
         }
      }
d2613 2
a2614 40
      /* Integer fragment inputs must be qualified with 'flat'.  In GLSL ES,
       * so must integer vertex outputs.
       *
       * From section 4.3.4 ("Inputs") of the GLSL 1.50 spec:
       *    "Fragment shader inputs that are signed or unsigned integers or
       *    integer vectors must be qualified with the interpolation qualifier
       *    flat."
       *
       * From section 4.3.4 ("Input Variables") of the GLSL 3.00 ES spec:
       *    "Fragment shader inputs that are, or contain, signed or unsigned
       *    integers or integer vectors must be qualified with the
       *    interpolation qualifier flat."
       *
       * From section 4.3.6 ("Output Variables") of the GLSL 3.00 ES spec:
       *    "Vertex shader outputs that are, or contain, signed or unsigned
       *    integers or integer vectors must be qualified with the
       *    interpolation qualifier flat."
       *
       * Note that prior to GLSL 1.50, this requirement applied to vertex
       * outputs rather than fragment inputs.  That creates problems in the
       * presence of geometry shaders, so we adopt the GLSL 1.50 rule for all
       * desktop GL shaders.  For GLSL ES shaders, we follow the spec and
       * apply the restriction to both vertex outputs and fragment inputs.
       *
       * Note also that the desktop GLSL specs are missing the text "or
       * contain"; this is presumably an oversight, since there is no
       * reasonable way to interpolate a fragment shader input that contains
       * an integer.
       */
      if (state->is_version(130, 300) &&
          var->type->contains_integer() &&
          var->data.interpolation != INTERP_QUALIFIER_FLAT &&
          ((state->stage == MESA_SHADER_FRAGMENT && var->data.mode == ir_var_shader_in)
           || (state->stage == MESA_SHADER_VERTEX && var->data.mode == ir_var_shader_out
               && state->es_shader))) {
         const char *var_type = (state->stage == MESA_SHADER_VERTEX) ?
            "vertex output" : "fragment input";
         _mesa_glsl_error(&loc, state, "if a %s is (or contains) "
                          "an integer, then it must be qualified with 'flat'",
                          var_type);
a2624 2
       *
       * These deprecated storage qualifiers do not exist in GLSL ES 3.00.
d2626 1
a2626 1
      if (state->is_version(130, 0)
a2650 6
       *
       * From page 31 (page 37 of the PDF) of the GLSL ES 3.00 spec:
       *    "These interpolation qualifiers may only precede the qualifiers
       *    in, centroid in, out, or centroid out in a declaration. They do
       *    not apply to inputs into a vertex shader or outputs from a
       *    fragment shader."
d2652 1
a2652 1
      if (state->is_version(130, 300)
d2658 2
a2659 2
         switch (state->stage) {
         case MESA_SHADER_VERTEX:
d2666 1
a2666 1
         case MESA_SHADER_FRAGMENT:
d2674 1
a2674 1
            break;
d2679 13
d2694 7
a2700 2
      if (this->type->qualifier.precision != ast_precision_none) {
         state->check_precision_qualifiers_allowed(&loc);
d2704 1
a2704 2
      /* Precision qualifiers apply to floating point, integer and sampler
       * types.
d2706 1
a2706 1
       * Section 4.5.2 (Precision Qualifiers) of the GLSL 1.30 spec says:
d2712 1
a2712 14
       * Section 4.5 (Precision and Precision Qualifiers) of the GLSL 1.30
       * spec also says:
       *
       *     "Precision qualifiers are added for code portability with OpenGL
       *     ES, not for functionality. They have the same syntax as in OpenGL
       *     ES."
       *
       * Section 8 (Built-In Functions) of the GLSL ES 1.00 spec says:
       *
       *     "uniform lowp sampler2D sampler;
       *     highp vec2 coord;
       *     ...
       *     lowp vec4 col = texture2D (sampler, coord);
       *                                            // texture2D returns lowp"
d2714 2
a2715 2
       * From this, we infer that GLSL 1.30 (and later) should allow precision
       * qualifiers on sampler types just like float and integer types.
d2717 1
a2717 1
      if (this->type->qualifier.precision != ast_precision_none
d2720 1
a2720 2
          && !var->type->is_record()
          && !var->type->is_sampler()
d2727 2
a2728 1
                          ", integer and sampler types");
d2731 1
a2731 1
      /* From section 4.1.7 of the GLSL 4.40 spec:
d2733 3
a2735 2
       *    "[Opaque types] can only be declared as function
       *     parameters or uniform-qualified variables."
d2737 1
a2737 1
      if (var_type->contains_opaque() &&
d2739 1
a2739 2
         _mesa_glsl_error(&loc, state,
                          "opaque variables must be declared uniform");
d2749 1
a2749 16

      /* Examine var name here since var may get deleted in the next call */
      bool var_is_gl_id = is_gl_identifier(var->name);

      ir_variable *earlier =
         get_variable_being_redeclared(var, decl->get_location(), state,
                                       false /* allow_all_redeclarations */);
      if (earlier != NULL) {
         if (var_is_gl_id &&
             earlier->data.how_declared == ir_var_declared_in_block) {
            _mesa_glsl_error(&loc, state,
                             "`%s' has already been redeclared using "
                             "gl_PerVertex", earlier->name);
         }
         earlier->data.how_declared = ir_var_declared_normally;
      }
d2752 3
a2754 3
         result = process_initializer((earlier == NULL) ? var : earlier,
                                      decl, this->type,
                                      &initializer_instructions, state);
d2764 3
a2766 30
         _mesa_glsl_error(& loc, state,
                          "const declaration of `%s' must be initialized",
                          decl->identifier);
      }

      if (state->es_shader) {
         const glsl_type *const t = (earlier == NULL)
            ? var->type : earlier->type;

         if (t->is_unsized_array())
            /* Section 10.17 of the GLSL ES 1.00 specification states that
             * unsized array declarations have been removed from the language.
             * Arrays that are sized using an initializer are still explicitly
             * sized.  However, GLSL ES 1.00 does not allow array
             * initializers.  That is only allowed in GLSL ES 3.00.
             *
             * Section 4.1.9 (Arrays) of the GLSL ES 3.00 spec says:
             *
             *     "An array type can also be formed without specifying a size
             *     if the definition includes an initializer:
             *
             *         float x[] = float[2] (1.0, 2.0);     // declares an array of size 2
             *         float y[] = float[] (1.0, 2.0, 3.0); // declares an array of size 3
             *
             *         float a[5];
             *         float b[] = a;"
             */
            _mesa_glsl_error(& loc, state,
                             "unsized array declarations are not allowed in "
                             "GLSL ES");
d2774 37
a2810 28
         validate_identifier(decl->identifier, loc, state);

         /* Add the variable to the symbol table.  Note that the initializer's
          * IR was already processed earlier (though it hasn't been emitted
          * yet), without the variable in scope.
          *
          * This differs from most C-like languages, but it follows the GLSL
          * specification.  From page 28 (page 34 of the PDF) of the GLSL 1.50
          * spec:
          *
          *     "Within a declaration, the scope of a name starts immediately
          *     after the initializer if present or immediately after the name
          *     being declared if not."
          */
         if (!state->symbols->add_variable(var)) {
            YYLTYPE loc = this->get_location();
            _mesa_glsl_error(&loc, state, "name `%s' already taken in the "
                             "current scope", decl->identifier);
            continue;
         }

         /* Push the variable declaration to the top.  It means that all the
          * variable declarations will appear in a funny last-to-first order,
          * but otherwise we run into trouble if a function is prototyped, a
          * global var is decled, then the function is defined with usage of
          * the global var.  See glslparsertest's CorrectModule.frag.
          */
         instructions->push_head(var);
d2832 1
a2832 1
                              struct _mesa_glsl_parse_state *state)
d2839 1
a2839 1
   type = this->type->glsl_type(& name, state);
d2843 7
a2849 7
         _mesa_glsl_error(& loc, state,
                          "invalid type `%s' in declaration of `%s'",
                          name, this->identifier);
      } else {
         _mesa_glsl_error(& loc, state,
                          "invalid type in declaration of `%s'",
                          this->identifier);
d2869 2
a2870 2
         _mesa_glsl_error(& loc, state,
                          "named parameter cannot have type `void'");
d2884 3
a2886 1
   type = process_array_type(&loc, type, this->array_specifier, state);
d2888 1
a2888 1
   if (!type->is_error() && type->is_unsized_array()) {
d2890 1
a2890 1
                       "a declared size");
d2895 1
a2895 2
   ir_variable *var = new(ctx)
      ir_variable(type, this->identifier, ir_var_function_in);
d2900 1
a2900 2
   apply_type_qualifier_to_variable(& this->type->qualifier, var, state, & loc,
                                    true);
d2902 1
a2902 1
   /* From section 4.1.7 of the GLSL 4.40 spec:
d2904 7
a2910 8
    *   "Opaque variables cannot be treated as l-values; hence cannot
    *    be used as out or inout function parameters, nor can they be
    *    assigned into."
    */
   if ((var->data.mode == ir_var_function_inout || var->data.mode == ir_var_function_out)
       && type->contains_opaque()) {
      _mesa_glsl_error(&loc, state, "out and inout parameters cannot "
                       "contain opaque variables");
d2928 3
a2930 4
   if ((var->data.mode == ir_var_function_inout || var->data.mode == ir_var_function_out)
       && type->is_array()
       && !state->check_version(120, 100, &loc,
                                "arrays cannot be out or inout parameters")) {
d2944 3
a2946 3
                                            bool formal,
                                            exec_list *ir_parameters,
                                            _mesa_glsl_parse_state *state)
d2956 1
a2956 1
         void_param = param;
d2965 1
a2965 1
                       "`void' parameter must be only parameter");
d2986 1
a2986 1
                  struct _mesa_glsl_parse_state *state)
a2994 6
   /* New functions are always added to the top-level IR instruction stream,
    * so this instruction list pointer is ignored.  See also emit_function
    * (called below).
    */
   (void) instructions;

d3007 1
a3007 2
   if ((state->current_function != NULL) &&
       state->is_version(120, 100)) {
d3014 11
a3024 1
   validate_identifier(name, this->get_location(), state);
d3031 2
a3032 2
                                               is_definition,
                                               & hir_parameters, state);
d3036 1
a3036 1
      this->return_type->glsl_type(& return_type_name, state);
d3041 2
a3042 2
                       "function `%s' has undeclared return type `%s'",
                       name, return_type_name);
d3052 1
a3052 13
                       "function `%s' return type has qualifiers", name);
   }

   /* Section 6.1 (Function Definitions) of the GLSL 1.20 spec says:
    *
    *     "Arrays are allowed as arguments and as the return type. In both
    *     cases, the array must be explicitly sized."
    */
   if (return_type->is_unsized_array()) {
      YYLTYPE loc = this->get_location();
      _mesa_glsl_error(& loc, state,
                       "function `%s' return type array must be explicitly "
                       "sized", name);
d3055 1
a3055 1
   /* From section 4.1.7 of the GLSL 4.40 spec:
d3057 2
a3058 2
    *    "[Opaque types] can only be declared as function parameters
    *     or uniform-qualified variables."
d3060 1
a3060 1
   if (return_type->contains_opaque()) {
d3063 1
a3063 1
                       "function `%s' return type can't contain an opaque type",
a3066 16
   /* Create an ir_function if one doesn't already exist. */
   f = state->symbols->get_function(name);
   if (f == NULL) {
      f = new(ctx) ir_function(name);
      if (!state->symbols->add_function(f)) {
         /* This function name shadows a non-function use of the same name. */
         YYLTYPE loc = this->get_location();

         _mesa_glsl_error(&loc, state, "function name `%s' conflicts with "
                          "non-function", name);
         return NULL;
      }

      emit_function(state, f);
   }

d3071 3
a3073 2
   if (state->es_shader || f->has_user_signature()) {
      sig = f->exact_matching_signature(state, &hir_parameters);
d3075 14
a3088 3
         const char *badvar = sig->qualifiers_match(&hir_parameters);
         if (badvar != NULL) {
            YYLTYPE loc = this->get_location();
d3090 2
a3091 3
            _mesa_glsl_error(&loc, state, "function `%s' parameter `%s' "
                             "qualifiers don't match prototype", name, badvar);
         }
d3093 8
a3100 2
         if (sig->return_type != return_type) {
            YYLTYPE loc = this->get_location();
d3102 4
a3105 3
            _mesa_glsl_error(&loc, state, "function `%s' return type doesn't "
                             "match prototype", name);
         }
d3107 1
a3107 13
         if (sig->is_defined) {
            if (is_definition) {
               YYLTYPE loc = this->get_location();
               _mesa_glsl_error(& loc, state, "function `%s' redefined", name);
            } else {
               /* We just encountered a prototype that exactly matches a
                * function that's already been defined.  This is redundant,
                * and we should ignore it.
                */
               return NULL;
            }
         }
      }
d3113 1
a3113 1
         YYLTYPE loc = this->get_location();
d3115 1
a3115 1
         _mesa_glsl_error(& loc, state, "main() must return void");
d3119 1
a3119 1
         YYLTYPE loc = this->get_location();
d3121 1
a3121 1
         _mesa_glsl_error(& loc, state, "main() must not take any parameters");
d3143 1
a3143 1
                             struct _mesa_glsl_parse_state *state)
d3160 4
a3163 2
   foreach_in_list(ir_variable, var, &signature->parameters) {
      assert(var->as_variable() != NULL);
d3169 1
a3169 1
         YYLTYPE loc = this->get_location();
d3171 1
a3171 1
         _mesa_glsl_error(& loc, state, "parameter `%s' redeclared", var->name);
d3173 1
a3173 1
         state->symbols->add_variable(var);
d3189 3
a3191 3
                       "%s, but no return statement",
                       signature->function_name(),
                       signature->return_type->name);
d3202 1
a3202 1
                        struct _mesa_glsl_parse_state *state)
d3212 1
a3212 52
         ir_rvalue *ret = opt_return_value->hir(instructions, state);

         /* The value of the return type can be NULL if the shader says
          * 'return foo();' and foo() is a function that returns void.
          *
          * NOTE: The GLSL spec doesn't say that this is an error.  The type
          * of the return value is void.  If the return type of the function is
          * also void, then this should compile without error.  Seriously.
          */
         const glsl_type *const ret_type =
            (ret == NULL) ? glsl_type::void_type : ret->type;

         /* Implicit conversions are not allowed for return values prior to
          * ARB_shading_language_420pack.
          */
         if (state->current_function->return_type != ret_type) {
            YYLTYPE loc = this->get_location();

            if (state->ARB_shading_language_420pack_enable) {
               if (!apply_implicit_conversion(state->current_function->return_type,
                                              ret, state)) {
                  _mesa_glsl_error(& loc, state,
                                   "could not implicitly convert return value "
                                   "to %s, in function `%s'",
                                   state->current_function->return_type->name,
                                   state->current_function->function_name());
               }
            } else {
               _mesa_glsl_error(& loc, state,
                                "`return' with wrong type %s, in function `%s' "
                                "returning %s",
                                ret_type->name,
                                state->current_function->function_name(),
                                state->current_function->return_type->name);
            }
         } else if (state->current_function->return_type->base_type ==
                    GLSL_TYPE_VOID) {
            YYLTYPE loc = this->get_location();

            /* The ARB_shading_language_420pack, GLSL ES 3.0, and GLSL 4.20
             * specs add a clarification:
             *
             *    "A void function can only use return without a return argument, even if
             *     the return argument has void type. Return statements only accept values:
             *
             *         void func1() { }
             *         void func2() { return func1(); } // illegal return statement"
             */
            _mesa_glsl_error(& loc, state,
                             "void functions can only use `return' without a "
                             "return argument");
         }
d3214 34
a3247 12
         inst = new(ctx) ir_return(ret);
      } else {
         if (state->current_function->return_type->base_type !=
             GLSL_TYPE_VOID) {
            YYLTYPE loc = this->get_location();

            _mesa_glsl_error(& loc, state,
                             "`return' with no value, in function %s returning "
                             "non-void",
            state->current_function->function_name());
         }
         inst = new(ctx) ir_return;
d3256 2
a3257 2
      if (state->stage != MESA_SHADER_FRAGMENT) {
         YYLTYPE loc = this->get_location();
d3259 2
a3260 2
         _mesa_glsl_error(& loc, state,
                          "`discard' may only appear in a fragment shader");
d3267 33
a3299 50
      if (mode == ast_continue &&
          state->loop_nesting_ast == NULL) {
         YYLTYPE loc = this->get_location();

         _mesa_glsl_error(& loc, state, "continue may only appear in a loop");
      } else if (mode == ast_break &&
         state->loop_nesting_ast == NULL &&
         state->switch_state.switch_nesting_ast == NULL) {
         YYLTYPE loc = this->get_location();

         _mesa_glsl_error(& loc, state,
                          "break may only appear in a loop or a switch");
      } else {
         /* For a loop, inline the for loop expression again, since we don't
          * know where near the end of the loop body the normal copy of it is
          * going to be placed.  Same goes for the condition for a do-while
          * loop.
          */
         if (state->loop_nesting_ast != NULL &&
             mode == ast_continue) {
            if (state->loop_nesting_ast->rest_expression) {
               state->loop_nesting_ast->rest_expression->hir(instructions,
                                                             state);
            }
            if (state->loop_nesting_ast->mode ==
                ast_iteration_statement::ast_do_while) {
               state->loop_nesting_ast->condition_to_hir(instructions, state);
            }
         }

         if (state->switch_state.is_switch_innermost &&
             mode == ast_break) {
            /* Force break out of switch by setting is_break switch state.
             */
            ir_variable *const is_break_var = state->switch_state.is_break_var;
            ir_dereference_variable *const deref_is_break_var =
               new(ctx) ir_dereference_variable(is_break_var);
            ir_constant *const true_val = new(ctx) ir_constant(true);
            ir_assignment *const set_break_var =
               new(ctx) ir_assignment(deref_is_break_var, true_val);
	    
            instructions->push_tail(set_break_var);
         }
         else {
            ir_loop_jump *const jump =
               new(ctx) ir_loop_jump((mode == ast_break)
                  ? ir_loop_jump::jump_break
                  : ir_loop_jump::jump_continue);
            instructions->push_tail(jump);
         }
d3313 1
a3313 1
                             struct _mesa_glsl_parse_state *state)
d3332 1
a3332 1
                       "boolean");
d3357 3
a3359 3
ir_rvalue *
ast_switch_statement::hir(exec_list *instructions,
                          struct _mesa_glsl_parse_state *state)
d3363 19
a3381 2
   ir_rvalue *const test_expression =
      this->test_expression->hir(instructions, state);
d3383 2
a3384 8
   /* From page 66 (page 55 of the PDF) of the GLSL 1.50 spec:
    *
    *    "The type of init-expression in a switch statement must be a 
    *     scalar integer." 
    */
   if (!test_expression->type->is_scalar() ||
       !test_expression->type->is_integer()) {
      YYLTYPE loc = this->test_expression->get_location();
d3386 3
a3388 4
      _mesa_glsl_error(& loc,
                       state,
                       "switch-statement expression must be scalar "
                       "integer");
d3390 1
a3391 3
   /* Track the switch-statement nesting in a stack-like manner.
    */
   struct glsl_switch_state saved = state->switch_state;
d3393 5
a3397 5
   state->switch_state.is_switch_innermost = true;
   state->switch_state.switch_nesting_ast = this;
   state->switch_state.labels_ht = hash_table_ctor(0, hash_table_pointer_hash,
						   hash_table_pointer_compare);
   state->switch_state.previous_default = NULL;
d3399 1
a3399 1
   /* Initalize is_fallthru state to false.
d3401 2
a3402 6
   ir_rvalue *const is_fallthru_val = new (ctx) ir_constant(false);
   state->switch_state.is_fallthru_var =
      new(ctx) ir_variable(glsl_type::bool_type,
                           "switch_is_fallthru_tmp",
                           ir_var_temporary);
   instructions->push_tail(state->switch_state.is_fallthru_var);
d3404 5
a3408 4
   ir_dereference_variable *deref_is_fallthru_var =
      new(ctx) ir_dereference_variable(state->switch_state.is_fallthru_var);
   instructions->push_tail(new(ctx) ir_assignment(deref_is_fallthru_var,
                                                  is_fallthru_val));
d3410 1
a3410 1
   /* Initalize is_break state to false.
d3412 5
a3416 6
   ir_rvalue *const is_break_val = new (ctx) ir_constant(false);
   state->switch_state.is_break_var =
      new(ctx) ir_variable(glsl_type::bool_type,
                           "switch_is_break_tmp",
                           ir_var_temporary);
   instructions->push_tail(state->switch_state.is_break_var);
d3418 2
a3419 4
   ir_dereference_variable *deref_is_break_var =
      new(ctx) ir_dereference_variable(state->switch_state.is_break_var);
   instructions->push_tail(new(ctx) ir_assignment(deref_is_break_var,
                                                  is_break_val));
d3421 2
a3422 5
   state->switch_state.run_default =
      new(ctx) ir_variable(glsl_type::bool_type,
                             "run_default_tmp",
                             ir_var_temporary);
   instructions->push_tail(state->switch_state.run_default);
d3424 2
a3425 3
   /* Cache test expression.
    */
   test_to_hir(instructions, state);
d3427 2
a3428 3
   /* Emit code for body of switch stmt.
    */
   body->hir(instructions, state);
d3430 2
a3431 1
   hash_table_dtor(state->switch_state.labels_ht);
d3433 4
a3436 1
   state->switch_state = saved;
d3438 2
a3439 1
   /* Switch statements do not have r-values. */
d3444 3
a3446 3
void
ast_switch_statement::test_to_hir(exec_list *instructions,
                                  struct _mesa_glsl_parse_state *state)
d3448 4
a3451 1
   void *ctx = state;
d3453 14
a3466 10
   /* Cache value of test expression. */
   ir_rvalue *const test_val =
      test_expression->hir(instructions,
			   state);

   state->switch_state.test_var = new(ctx) ir_variable(test_val->type,
                                                       "switch_test_tmp",
                                                       ir_var_temporary);
   ir_dereference_variable *deref_test_var =
      new(ctx) ir_dereference_variable(state->switch_state.test_var);
d3468 27
a3494 3
   instructions->push_tail(state->switch_state.test_var);
   instructions->push_tail(new(ctx) ir_assignment(deref_test_var, test_val));
}
d3496 3
d3500 2
a3501 6
ir_rvalue *
ast_switch_body::hir(exec_list *instructions,
                     struct _mesa_glsl_parse_state *state)
{
   if (stmts != NULL)
      stmts->hir(instructions, state);
a3502 1
   /* Switch bodies do not have r-values. */
d3506 1
d3508 2
a3509 2
ast_case_statement_list::hir(exec_list *instructions,
                             struct _mesa_glsl_parse_state *state)
d3511 1
a3511 1
   exec_list default_case, after_default, tmp;
d3513 9
a3521 7
   foreach_list_typed (ast_case_statement, case_stmt, link, & this->cases) {
      case_stmt->hir(&tmp, state);

      /* Default case. */
      if (state->switch_state.previous_default && default_case.is_empty()) {
         default_case.append_list(&tmp);
         continue;
a3522 6

      /* If default case found, append 'after_default' list. */
      if (!default_case.is_empty())
         after_default.append_list(&tmp);
      else
         instructions->append_list(&tmp);
d3525 4
a3528 3
   /* Handle the default case. This is done here because default might not be
    * the last case. We need to add checks against following cases first to see
    * if default should be chosen or not.
d3530 7
a3536 1
   if (!default_case.is_empty()) {
d3538 1
a3538 3
      ir_rvalue *const true_val = new (state) ir_constant(true);
      ir_dereference_variable *deref_run_default_var =
         new(state) ir_dereference_variable(state->switch_state.run_default);
d3540 2
a3541 2
      /* Choose to run default case initially, following conditional
       * assignments might change this.
d3543 4
a3546 8
      ir_assignment *const init_var =
         new(state) ir_assignment(deref_run_default_var, true_val);
      instructions->push_tail(init_var);

      /* Default case was the last one, no checks required. */
      if (after_default.is_empty()) {
         instructions->append_list(&default_case);
         return NULL;
d3549 2
a3550 2
      foreach_in_list(ir_instruction, ir, &after_default) {
         ir_assignment *assign = ir->as_assignment();
d3552 14
a3565 2
         if (!assign)
            continue;
d3567 1
a3567 3
         /* Clone the check between case label and init expression. */
         ir_expression *exp = (ir_expression*) assign->condition;
         ir_expression *clone = exp->clone(state, NULL);
d3569 2
a3570 3
         ir_dereference_variable *deref_var =
            new(state) ir_dereference_variable(state->switch_state.run_default);
         ir_rvalue *const false_val = new (state) ir_constant(false);
d3572 11
a3582 4
         ir_assignment *const set_false =
            new(state) ir_assignment(deref_var, false_val, clone);

         instructions->push_tail(set_false);
a3583 4

      /* Append default case and all cases after it. */
      instructions->append_list(&default_case);
      instructions->append_list(&after_default);
d3586 2
a3587 1
   /* Case statements do not have r-values. */
a3589 1361

ir_rvalue *
ast_case_statement::hir(exec_list *instructions,
                        struct _mesa_glsl_parse_state *state)
{
   labels->hir(instructions, state);

   /* Conditionally set fallthru state based on break state. */
   ir_constant *const false_val = new(state) ir_constant(false);
   ir_dereference_variable *const deref_is_fallthru_var =
      new(state) ir_dereference_variable(state->switch_state.is_fallthru_var);
   ir_dereference_variable *const deref_is_break_var =
      new(state) ir_dereference_variable(state->switch_state.is_break_var);
   ir_assignment *const reset_fallthru_on_break =
      new(state) ir_assignment(deref_is_fallthru_var,
                               false_val,
                               deref_is_break_var);
   instructions->push_tail(reset_fallthru_on_break);

   /* Guard case statements depending on fallthru state. */
   ir_dereference_variable *const deref_fallthru_guard =
      new(state) ir_dereference_variable(state->switch_state.is_fallthru_var);
   ir_if *const test_fallthru = new(state) ir_if(deref_fallthru_guard);

   foreach_list_typed (ast_node, stmt, link, & this->stmts)
      stmt->hir(& test_fallthru->then_instructions, state);

   instructions->push_tail(test_fallthru);

   /* Case statements do not have r-values. */
   return NULL;
}


ir_rvalue *
ast_case_label_list::hir(exec_list *instructions,
                         struct _mesa_glsl_parse_state *state)
{
   foreach_list_typed (ast_case_label, label, link, & this->labels)
      label->hir(instructions, state);

   /* Case labels do not have r-values. */
   return NULL;
}

ir_rvalue *
ast_case_label::hir(exec_list *instructions,
                    struct _mesa_glsl_parse_state *state)
{
   void *ctx = state;

   ir_dereference_variable *deref_fallthru_var =
      new(ctx) ir_dereference_variable(state->switch_state.is_fallthru_var);

   ir_rvalue *const true_val = new(ctx) ir_constant(true);

   /* If not default case, ... */
   if (this->test_value != NULL) {
      /* Conditionally set fallthru state based on
       * comparison of cached test expression value to case label.
       */
      ir_rvalue *const label_rval = this->test_value->hir(instructions, state);
      ir_constant *label_const = label_rval->constant_expression_value();

      if (!label_const) {
         YYLTYPE loc = this->test_value->get_location();

         _mesa_glsl_error(& loc, state,
                          "switch statement case label must be a "
                          "constant expression");

         /* Stuff a dummy value in to allow processing to continue. */
         label_const = new(ctx) ir_constant(0);
      } else {
         ast_expression *previous_label = (ast_expression *)
         hash_table_find(state->switch_state.labels_ht,
                         (void *)(uintptr_t)label_const->value.u[0]);

         if (previous_label) {
            YYLTYPE loc = this->test_value->get_location();
            _mesa_glsl_error(& loc, state, "duplicate case value");

            loc = previous_label->get_location();
            _mesa_glsl_error(& loc, state, "this is the previous case label");
         } else {
            hash_table_insert(state->switch_state.labels_ht,
                              this->test_value,
                              (void *)(uintptr_t)label_const->value.u[0]);
         }
      }

      ir_dereference_variable *deref_test_var =
         new(ctx) ir_dereference_variable(state->switch_state.test_var);

      ir_expression *test_cond = new(ctx) ir_expression(ir_binop_all_equal,
                                                        label_const,
                                                        deref_test_var);

      /*
       * From GLSL 4.40 specification section 6.2 ("Selection"):
       *
       *     "The type of the init-expression value in a switch statement must
       *     be a scalar int or uint. The type of the constant-expression value
       *     in a case label also must be a scalar int or uint. When any pair
       *     of these values is tested for "equal value" and the types do not
       *     match, an implicit conversion will be done to convert the int to a
       *     uint (see section 4.1.10 “Implicit Conversions”) before the compare
       *     is done."
       */
      if (label_const->type != state->switch_state.test_var->type) {
         YYLTYPE loc = this->test_value->get_location();

         const glsl_type *type_a = label_const->type;
         const glsl_type *type_b = state->switch_state.test_var->type;

         /* Check if int->uint implicit conversion is supported. */
         bool integer_conversion_supported =
            glsl_type::int_type->can_implicitly_convert_to(glsl_type::uint_type,
                                                           state);

         if ((!type_a->is_integer() || !type_b->is_integer()) ||
              !integer_conversion_supported) {
            _mesa_glsl_error(&loc, state, "type mismatch with switch "
                             "init-expression and case label (%s != %s)",
                             type_a->name, type_b->name);
         } else {
            /* Conversion of the case label. */
            if (type_a->base_type == GLSL_TYPE_INT) {
               if (!apply_implicit_conversion(glsl_type::uint_type,
                                              test_cond->operands[0], state))
                  _mesa_glsl_error(&loc, state, "implicit type conversion error");
            } else {
               /* Conversion of the init-expression value. */
               if (!apply_implicit_conversion(glsl_type::uint_type,
                                              test_cond->operands[1], state))
                  _mesa_glsl_error(&loc, state, "implicit type conversion error");
            }
         }
      }

      ir_assignment *set_fallthru_on_test =
         new(ctx) ir_assignment(deref_fallthru_var, true_val, test_cond);

      instructions->push_tail(set_fallthru_on_test);
   } else { /* default case */
      if (state->switch_state.previous_default) {
         YYLTYPE loc = this->get_location();
         _mesa_glsl_error(& loc, state,
                          "multiple default labels in one switch");

         loc = state->switch_state.previous_default->get_location();
         _mesa_glsl_error(& loc, state, "this is the first default label");
      }
      state->switch_state.previous_default = this;

      /* Set fallthru condition on 'run_default' bool. */
      ir_dereference_variable *deref_run_default =
         new(ctx) ir_dereference_variable(state->switch_state.run_default);
      ir_rvalue *const cond_true = new(ctx) ir_constant(true);
      ir_expression *test_cond = new(ctx) ir_expression(ir_binop_all_equal,
                                                        cond_true,
                                                        deref_run_default);

      /* Set falltrhu state. */
      ir_assignment *set_fallthru =
         new(ctx) ir_assignment(deref_fallthru_var, true_val, test_cond);

      instructions->push_tail(set_fallthru);
   }

   /* Case statements do not have r-values. */
   return NULL;
}

void
ast_iteration_statement::condition_to_hir(exec_list *instructions,
                                          struct _mesa_glsl_parse_state *state)
{
   void *ctx = state;

   if (condition != NULL) {
      ir_rvalue *const cond =
         condition->hir(instructions, state);

      if ((cond == NULL)
          || !cond->type->is_boolean() || !cond->type->is_scalar()) {
         YYLTYPE loc = condition->get_location();

         _mesa_glsl_error(& loc, state,
                          "loop condition must be scalar boolean");
      } else {
         /* As the first code in the loop body, generate a block that looks
          * like 'if (!condition) break;' as the loop termination condition.
          */
         ir_rvalue *const not_cond =
            new(ctx) ir_expression(ir_unop_logic_not, cond);

         ir_if *const if_stmt = new(ctx) ir_if(not_cond);

         ir_jump *const break_stmt =
            new(ctx) ir_loop_jump(ir_loop_jump::jump_break);

         if_stmt->then_instructions.push_tail(break_stmt);
         instructions->push_tail(if_stmt);
      }
   }
}


ir_rvalue *
ast_iteration_statement::hir(exec_list *instructions,
                             struct _mesa_glsl_parse_state *state)
{
   void *ctx = state;

   /* For-loops and while-loops start a new scope, but do-while loops do not.
    */
   if (mode != ast_do_while)
      state->symbols->push_scope();

   if (init_statement != NULL)
      init_statement->hir(instructions, state);

   ir_loop *const stmt = new(ctx) ir_loop();
   instructions->push_tail(stmt);

   /* Track the current loop nesting. */
   ast_iteration_statement *nesting_ast = state->loop_nesting_ast;

   state->loop_nesting_ast = this;

   /* Likewise, indicate that following code is closest to a loop,
    * NOT closest to a switch.
    */
   bool saved_is_switch_innermost = state->switch_state.is_switch_innermost;
   state->switch_state.is_switch_innermost = false;

   if (mode != ast_do_while)
      condition_to_hir(&stmt->body_instructions, state);

   if (body != NULL)
      body->hir(& stmt->body_instructions, state);

   if (rest_expression != NULL)
      rest_expression->hir(& stmt->body_instructions, state);

   if (mode == ast_do_while)
      condition_to_hir(&stmt->body_instructions, state);

   if (mode != ast_do_while)
      state->symbols->pop_scope();

   /* Restore previous nesting before returning. */
   state->loop_nesting_ast = nesting_ast;
   state->switch_state.is_switch_innermost = saved_is_switch_innermost;

   /* Loops do not have r-values.
    */
   return NULL;
}


/**
 * Determine if the given type is valid for establishing a default precision
 * qualifier.
 *
 * From GLSL ES 3.00 section 4.5.4 ("Default Precision Qualifiers"):
 *
 *     "The precision statement
 *
 *         precision precision-qualifier type;
 *
 *     can be used to establish a default precision qualifier. The type field
 *     can be either int or float or any of the sampler types, and the
 *     precision-qualifier can be lowp, mediump, or highp."
 *
 * GLSL ES 1.00 has similar language.  GLSL 1.30 doesn't allow precision
 * qualifiers on sampler types, but this seems like an oversight (since the
 * intention of including these in GLSL 1.30 is to allow compatibility with ES
 * shaders).  So we allow int, float, and all sampler types regardless of GLSL
 * version.
 */
static bool
is_valid_default_precision_type(const struct glsl_type *const type)
{
   if (type == NULL)
      return false;

   switch (type->base_type) {
   case GLSL_TYPE_INT:
   case GLSL_TYPE_FLOAT:
      /* "int" and "float" are valid, but vectors and matrices are not. */
      return type->vector_elements == 1 && type->matrix_columns == 1;
   case GLSL_TYPE_SAMPLER:
      return true;
   default:
      return false;
   }
}


ir_rvalue *
ast_type_specifier::hir(exec_list *instructions,
                        struct _mesa_glsl_parse_state *state)
{
   if (this->default_precision == ast_precision_none && this->structure == NULL)
      return NULL;

   YYLTYPE loc = this->get_location();

   /* If this is a precision statement, check that the type to which it is
    * applied is either float or int.
    *
    * From section 4.5.3 of the GLSL 1.30 spec:
    *    "The precision statement
    *       precision precision-qualifier type;
    *    can be used to establish a default precision qualifier. The type
    *    field can be either int or float [...].  Any other types or
    *    qualifiers will result in an error.
    */
   if (this->default_precision != ast_precision_none) {
      if (!state->check_precision_qualifiers_allowed(&loc))
         return NULL;

      if (this->structure != NULL) {
         _mesa_glsl_error(&loc, state,
                          "precision qualifiers do not apply to structures");
         return NULL;
      }

      if (this->array_specifier != NULL) {
         _mesa_glsl_error(&loc, state,
                          "default precision statements do not apply to "
                          "arrays");
         return NULL;
      }

      const struct glsl_type *const type =
         state->symbols->get_type(this->type_name);
      if (!is_valid_default_precision_type(type)) {
         _mesa_glsl_error(&loc, state,
                          "default precision statements apply only to "
                          "float, int, and sampler types");
         return NULL;
      }

      if (type->base_type == GLSL_TYPE_FLOAT
          && state->es_shader
          && state->stage == MESA_SHADER_FRAGMENT) {
         /* Section 4.5.3 (Default Precision Qualifiers) of the GLSL ES 1.00
          * spec says:
          *
          *     "The fragment language has no default precision qualifier for
          *     floating point types."
          *
          * As a result, we have to track whether or not default precision has
          * been specified for float in GLSL ES fragment shaders.
          *
          * Earlier in that same section, the spec says:
          *
          *     "Non-precision qualified declarations will use the precision
          *     qualifier specified in the most recent precision statement
          *     that is still in scope. The precision statement has the same
          *     scoping rules as variable declarations. If it is declared
          *     inside a compound statement, its effect stops at the end of
          *     the innermost statement it was declared in. Precision
          *     statements in nested scopes override precision statements in
          *     outer scopes. Multiple precision statements for the same basic
          *     type can appear inside the same scope, with later statements
          *     overriding earlier statements within that scope."
          *
          * Default precision specifications follow the same scope rules as
          * variables.  So, we can track the state of the default float
          * precision in the symbol table, and the rules will just work.  This
          * is a slight abuse of the symbol table, but it has the semantics
          * that we want.
          */
         ir_variable *const junk =
            new(state) ir_variable(type, "#default precision",
                                   ir_var_temporary);

         state->symbols->add_variable(junk);
      }

      /* FINISHME: Translate precision statements into IR. */
      return NULL;
   }

   /* _mesa_ast_set_aggregate_type() sets the <structure> field so that
    * process_record_constructor() can do type-checking on C-style initializer
    * expressions of structs, but ast_struct_specifier should only be translated
    * to HIR if it is declaring the type of a structure.
    *
    * The ->is_declaration field is false for initializers of variables
    * declared separately from the struct's type definition.
    *
    *    struct S { ... };              (is_declaration = true)
    *    struct T { ... } t = { ... };  (is_declaration = true)
    *    S s = { ... };                 (is_declaration = false)
    */
   if (this->structure != NULL && this->structure->is_declaration)
      return this->structure->hir(instructions, state);

   return NULL;
}


/**
 * Process a structure or interface block tree into an array of structure fields
 *
 * After parsing, where there are some syntax differnces, structures and
 * interface blocks are almost identical.  They are similar enough that the
 * AST for each can be processed the same way into a set of
 * \c glsl_struct_field to describe the members.
 *
 * If we're processing an interface block, var_mode should be the type of the
 * interface block (ir_var_shader_in, ir_var_shader_out, or ir_var_uniform).
 * If we're processing a structure, var_mode should be ir_var_auto.
 *
 * \return
 * The number of fields processed.  A pointer to the array structure fields is
 * stored in \c *fields_ret.
 */
unsigned
ast_process_structure_or_interface_block(exec_list *instructions,
                                         struct _mesa_glsl_parse_state *state,
                                         exec_list *declarations,
                                         YYLTYPE &loc,
                                         glsl_struct_field **fields_ret,
                                         bool is_interface,
                                         enum glsl_matrix_layout matrix_layout,
                                         bool allow_reserved_names,
                                         ir_variable_mode var_mode)
{
   unsigned decl_count = 0;

   /* Make an initial pass over the list of fields to determine how
    * many there are.  Each element in this list is an ast_declarator_list.
    * This means that we actually need to count the number of elements in the
    * 'declarations' list in each of the elements.
    */
   foreach_list_typed (ast_declarator_list, decl_list, link, declarations) {
      decl_count += decl_list->declarations.length();
   }

   /* Allocate storage for the fields and process the field
    * declarations.  As the declarations are processed, try to also convert
    * the types to HIR.  This ensures that structure definitions embedded in
    * other structure definitions or in interface blocks are processed.
    */
   glsl_struct_field *const fields = ralloc_array(state, glsl_struct_field,
                                                  decl_count);

   unsigned i = 0;
   foreach_list_typed (ast_declarator_list, decl_list, link, declarations) {
      const char *type_name;

      decl_list->type->specifier->hir(instructions, state);

      /* Section 10.9 of the GLSL ES 1.00 specification states that
       * embedded structure definitions have been removed from the language.
       */
      if (state->es_shader && decl_list->type->specifier->structure != NULL) {
         _mesa_glsl_error(&loc, state, "embedded structure definitions are "
                          "not allowed in GLSL ES 1.00");
      }

      const glsl_type *decl_type =
         decl_list->type->glsl_type(& type_name, state);

      foreach_list_typed (ast_declaration, decl, link,
                          &decl_list->declarations) {
         if (!allow_reserved_names)
            validate_identifier(decl->identifier, loc, state);

         /* From section 4.3.9 of the GLSL 4.40 spec:
          *
          *    "[In interface blocks] opaque types are not allowed."
          *
          * It should be impossible for decl_type to be NULL here.  Cases that
          * might naturally lead to decl_type being NULL, especially for the
          * is_interface case, will have resulted in compilation having
          * already halted due to a syntax error.
          */
         const struct glsl_type *field_type =
            decl_type != NULL ? decl_type : glsl_type::error_type;

         if (is_interface && field_type->contains_opaque()) {
            YYLTYPE loc = decl_list->get_location();
            _mesa_glsl_error(&loc, state,
                             "uniform in non-default uniform block contains "
                             "opaque variable");
         }

         if (field_type->contains_atomic()) {
            /* FINISHME: Add a spec quotation here once updated spec
             * FINISHME: language is available.  See Khronos bug #10903
             * FINISHME: on whether atomic counters are allowed in
             * FINISHME: structures.
             */
            YYLTYPE loc = decl_list->get_location();
            _mesa_glsl_error(&loc, state, "atomic counter in structure or "
                             "uniform block");
         }

         if (field_type->contains_image()) {
            /* FINISHME: Same problem as with atomic counters.
             * FINISHME: Request clarification from Khronos and add
             * FINISHME: spec quotation here.
             */
            YYLTYPE loc = decl_list->get_location();
            _mesa_glsl_error(&loc, state,
                             "image in structure or uniform block");
         }

         const struct ast_type_qualifier *const qual =
            & decl_list->type->qualifier;
         if (qual->flags.q.std140 ||
             qual->flags.q.packed ||
             qual->flags.q.shared) {
            _mesa_glsl_error(&loc, state,
                             "uniform block layout qualifiers std140, packed, and "
                             "shared can only be applied to uniform blocks, not "
                             "members");
         }

         field_type = process_array_type(&loc, decl_type,
                                         decl->array_specifier, state);
         fields[i].type = field_type;
         fields[i].name = decl->identifier;
         fields[i].location = -1;
         fields[i].interpolation =
            interpret_interpolation_qualifier(qual, var_mode, state, &loc);
         fields[i].centroid = qual->flags.q.centroid ? 1 : 0;
         fields[i].sample = qual->flags.q.sample ? 1 : 0;

         /* Only save explicitly defined streams in block's field */
         fields[i].stream = qual->flags.q.explicit_stream ? qual->stream : -1;

         if (qual->flags.q.row_major || qual->flags.q.column_major) {
            if (!qual->flags.q.uniform) {
               _mesa_glsl_error(&loc, state,
                                "row_major and column_major can only be "
                                "applied to uniform interface blocks");
            } else
               validate_matrix_layout_for_type(state, &loc, field_type, NULL);
         }

         if (qual->flags.q.uniform && qual->has_interpolation()) {
            _mesa_glsl_error(&loc, state,
                             "interpolation qualifiers cannot be used "
                             "with uniform interface blocks");
         }

         if ((qual->flags.q.uniform || !is_interface) &&
             qual->has_auxiliary_storage()) {
            _mesa_glsl_error(&loc, state,
                             "auxiliary storage qualifiers cannot be used "
                             "in uniform blocks or structures.");
         }

         /* Propogate row- / column-major information down the fields of the
          * structure or interface block.  Structures need this data because
          * the structure may contain a structure that contains ... a matrix
          * that need the proper layout.
          */
         if (field_type->without_array()->is_matrix()
             || field_type->without_array()->is_record()) {
            /* If no layout is specified for the field, inherit the layout
             * from the block.
             */
            fields[i].matrix_layout = matrix_layout;

            if (qual->flags.q.row_major)
               fields[i].matrix_layout = GLSL_MATRIX_LAYOUT_ROW_MAJOR;
            else if (qual->flags.q.column_major)
               fields[i].matrix_layout = GLSL_MATRIX_LAYOUT_COLUMN_MAJOR;

            /* If we're processing an interface block, the matrix layout must
             * be decided by this point.
             */
            assert(!is_interface
                   || fields[i].matrix_layout == GLSL_MATRIX_LAYOUT_ROW_MAJOR
                   || fields[i].matrix_layout == GLSL_MATRIX_LAYOUT_COLUMN_MAJOR);
         }

         i++;
      }
   }

   assert(i == decl_count);

   *fields_ret = fields;
   return decl_count;
}


ir_rvalue *
ast_struct_specifier::hir(exec_list *instructions,
                          struct _mesa_glsl_parse_state *state)
{
   YYLTYPE loc = this->get_location();

   /* Section 4.1.8 (Structures) of the GLSL 1.10 spec says:
    *
    *     "Anonymous structures are not supported; so embedded structures must
    *     have a declarator. A name given to an embedded struct is scoped at
    *     the same level as the struct it is embedded in."
    *
    * The same section of the  GLSL 1.20 spec says:
    *
    *     "Anonymous structures are not supported. Embedded structures are not
    *     supported.
    *
    *         struct S { float f; };
    *         struct T {
    *             S;              // Error: anonymous structures disallowed
    *             struct { ... }; // Error: embedded structures disallowed
    *             S s;            // Okay: nested structures with name are allowed
    *         };"
    *
    * The GLSL ES 1.00 and 3.00 specs have similar langauge and examples.  So,
    * we allow embedded structures in 1.10 only.
    */
   if (state->language_version != 110 && state->struct_specifier_depth != 0)
      _mesa_glsl_error(&loc, state,
		       "embedded structure declarations are not allowed");

   state->struct_specifier_depth++;

   glsl_struct_field *fields;
   unsigned decl_count =
      ast_process_structure_or_interface_block(instructions,
                                               state,
                                               &this->declarations,
                                               loc,
                                               &fields,
                                               false,
                                               GLSL_MATRIX_LAYOUT_INHERITED,
                                               false /* allow_reserved_names */,
                                               ir_var_auto);

   validate_identifier(this->name, loc, state);

   const glsl_type *t =
      glsl_type::get_record_instance(fields, decl_count, this->name);

   if (!state->symbols->add_type(name, t)) {
      _mesa_glsl_error(& loc, state, "struct `%s' previously defined", name);
   } else {
      const glsl_type **s = reralloc(state, state->user_structures,
                                     const glsl_type *,
                                     state->num_user_structures + 1);
      if (s != NULL) {
         s[state->num_user_structures] = t;
         state->user_structures = s;
         state->num_user_structures++;
      }
   }

   state->struct_specifier_depth--;

   /* Structure type definitions do not have r-values.
    */
   return NULL;
}


/**
 * Visitor class which detects whether a given interface block has been used.
 */
class interface_block_usage_visitor : public ir_hierarchical_visitor
{
public:
   interface_block_usage_visitor(ir_variable_mode mode, const glsl_type *block)
      : mode(mode), block(block), found(false)
   {
   }

   virtual ir_visitor_status visit(ir_dereference_variable *ir)
   {
      if (ir->var->data.mode == mode && ir->var->get_interface_type() == block) {
         found = true;
         return visit_stop;
      }
      return visit_continue;
   }

   bool usage_found() const
   {
      return this->found;
   }

private:
   ir_variable_mode mode;
   const glsl_type *block;
   bool found;
};


ir_rvalue *
ast_interface_block::hir(exec_list *instructions,
                         struct _mesa_glsl_parse_state *state)
{
   YYLTYPE loc = this->get_location();

   /* The ast_interface_block has a list of ast_declarator_lists.  We
    * need to turn those into ir_variables with an association
    * with this uniform block.
    */
   enum glsl_interface_packing packing;
   if (this->layout.flags.q.shared) {
      packing = GLSL_INTERFACE_PACKING_SHARED;
   } else if (this->layout.flags.q.packed) {
      packing = GLSL_INTERFACE_PACKING_PACKED;
   } else {
      /* The default layout is std140.
       */
      packing = GLSL_INTERFACE_PACKING_STD140;
   }

   ir_variable_mode var_mode;
   const char *iface_type_name;
   if (this->layout.flags.q.in) {
      var_mode = ir_var_shader_in;
      iface_type_name = "in";
   } else if (this->layout.flags.q.out) {
      var_mode = ir_var_shader_out;
      iface_type_name = "out";
   } else if (this->layout.flags.q.uniform) {
      var_mode = ir_var_uniform;
      iface_type_name = "uniform";
   } else {
      var_mode = ir_var_auto;
      iface_type_name = "UNKNOWN";
      assert(!"interface block layout qualifier not found!");
   }

   enum glsl_matrix_layout matrix_layout = GLSL_MATRIX_LAYOUT_INHERITED;
   if (this->layout.flags.q.row_major)
      matrix_layout = GLSL_MATRIX_LAYOUT_ROW_MAJOR;
   else if (this->layout.flags.q.column_major)
      matrix_layout = GLSL_MATRIX_LAYOUT_COLUMN_MAJOR;

   bool redeclaring_per_vertex = strcmp(this->block_name, "gl_PerVertex") == 0;
   exec_list declared_variables;
   glsl_struct_field *fields;

   /* Treat an interface block as one level of nesting, so that embedded struct
    * specifiers will be disallowed.
    */
   state->struct_specifier_depth++;

   unsigned int num_variables =
      ast_process_structure_or_interface_block(&declared_variables,
                                               state,
                                               &this->declarations,
                                               loc,
                                               &fields,
                                               true,
                                               matrix_layout,
                                               redeclaring_per_vertex,
                                               var_mode);

   state->struct_specifier_depth--;

   if (!redeclaring_per_vertex)
      validate_identifier(this->block_name, loc, state);

   const glsl_type *earlier_per_vertex = NULL;
   if (redeclaring_per_vertex) {
      /* Find the previous declaration of gl_PerVertex.  If we're redeclaring
       * the named interface block gl_in, we can find it by looking at the
       * previous declaration of gl_in.  Otherwise we can find it by looking
       * at the previous decalartion of any of the built-in outputs,
       * e.g. gl_Position.
       *
       * Also check that the instance name and array-ness of the redeclaration
       * are correct.
       */
      switch (var_mode) {
      case ir_var_shader_in:
         if (ir_variable *earlier_gl_in =
             state->symbols->get_variable("gl_in")) {
            earlier_per_vertex = earlier_gl_in->get_interface_type();
         } else {
            _mesa_glsl_error(&loc, state,
                             "redeclaration of gl_PerVertex input not allowed "
                             "in the %s shader",
                             _mesa_shader_stage_to_string(state->stage));
         }
         if (this->instance_name == NULL ||
             strcmp(this->instance_name, "gl_in") != 0 || this->array_specifier == NULL) {
            _mesa_glsl_error(&loc, state,
                             "gl_PerVertex input must be redeclared as "
                             "gl_in[]");
         }
         break;
      case ir_var_shader_out:
         if (ir_variable *earlier_gl_Position =
             state->symbols->get_variable("gl_Position")) {
            earlier_per_vertex = earlier_gl_Position->get_interface_type();
         } else {
            _mesa_glsl_error(&loc, state,
                             "redeclaration of gl_PerVertex output not "
                             "allowed in the %s shader",
                             _mesa_shader_stage_to_string(state->stage));
         }
         if (this->instance_name != NULL) {
            _mesa_glsl_error(&loc, state,
                             "gl_PerVertex input may not be redeclared with "
                             "an instance name");
         }
         break;
      default:
         _mesa_glsl_error(&loc, state,
                          "gl_PerVertex must be declared as an input or an "
                          "output");
         break;
      }

      if (earlier_per_vertex == NULL) {
         /* An error has already been reported.  Bail out to avoid null
          * dereferences later in this function.
          */
         return NULL;
      }

      /* Copy locations from the old gl_PerVertex interface block. */
      for (unsigned i = 0; i < num_variables; i++) {
         int j = earlier_per_vertex->field_index(fields[i].name);
         if (j == -1) {
            _mesa_glsl_error(&loc, state,
                             "redeclaration of gl_PerVertex must be a subset "
                             "of the built-in members of gl_PerVertex");
         } else {
            fields[i].location =
               earlier_per_vertex->fields.structure[j].location;
            fields[i].interpolation =
               earlier_per_vertex->fields.structure[j].interpolation;
            fields[i].centroid =
               earlier_per_vertex->fields.structure[j].centroid;
            fields[i].sample =
               earlier_per_vertex->fields.structure[j].sample;
         }
      }

      /* From section 7.1 ("Built-in Language Variables") of the GLSL 4.10
       * spec:
       *
       *     If a built-in interface block is redeclared, it must appear in
       *     the shader before any use of any member included in the built-in
       *     declaration, or a compilation error will result.
       *
       * This appears to be a clarification to the behaviour established for
       * gl_PerVertex by GLSL 1.50, therefore we implement this behaviour
       * regardless of GLSL version.
       */
      interface_block_usage_visitor v(var_mode, earlier_per_vertex);
      v.run(instructions);
      if (v.usage_found()) {
         _mesa_glsl_error(&loc, state,
                          "redeclaration of a built-in interface block must "
                          "appear before any use of any member of the "
                          "interface block");
      }
   }

   const glsl_type *block_type =
      glsl_type::get_interface_instance(fields,
                                        num_variables,
                                        packing,
                                        this->block_name);

   if (!state->symbols->add_interface(block_type->name, block_type, var_mode)) {
      YYLTYPE loc = this->get_location();
      _mesa_glsl_error(&loc, state, "interface block `%s' with type `%s' "
                       "already taken in the current scope",
                       this->block_name, iface_type_name);
   }

   /* Since interface blocks cannot contain statements, it should be
    * impossible for the block to generate any instructions.
    */
   assert(declared_variables.is_empty());

   /* From section 4.3.4 (Inputs) of the GLSL 1.50 spec:
    *
    *     Geometry shader input variables get the per-vertex values written
    *     out by vertex shader output variables of the same names. Since a
    *     geometry shader operates on a set of vertices, each input varying
    *     variable (or input block, see interface blocks below) needs to be
    *     declared as an array.
    */
   if (state->stage == MESA_SHADER_GEOMETRY && this->array_specifier == NULL &&
       var_mode == ir_var_shader_in) {
      _mesa_glsl_error(&loc, state, "geometry shader inputs must be arrays");
   }

   /* Page 39 (page 45 of the PDF) of section 4.3.7 in the GLSL ES 3.00 spec
    * says:
    *
    *     "If an instance name (instance-name) is used, then it puts all the
    *     members inside a scope within its own name space, accessed with the
    *     field selector ( . ) operator (analogously to structures)."
    */
   if (this->instance_name) {
      if (redeclaring_per_vertex) {
         /* When a built-in in an unnamed interface block is redeclared,
          * get_variable_being_redeclared() calls
          * check_builtin_array_max_size() to make sure that built-in array
          * variables aren't redeclared to illegal sizes.  But we're looking
          * at a redeclaration of a named built-in interface block.  So we
          * have to manually call check_builtin_array_max_size() for all parts
          * of the interface that are arrays.
          */
         for (unsigned i = 0; i < num_variables; i++) {
            if (fields[i].type->is_array()) {
               const unsigned size = fields[i].type->array_size();
               check_builtin_array_max_size(fields[i].name, size, loc, state);
            }
         }
      } else {
         validate_identifier(this->instance_name, loc, state);
      }

      ir_variable *var;

      if (this->array_specifier != NULL) {
         /* Section 4.3.7 (Interface Blocks) of the GLSL 1.50 spec says:
          *
          *     For uniform blocks declared an array, each individual array
          *     element corresponds to a separate buffer object backing one
          *     instance of the block. As the array size indicates the number
          *     of buffer objects needed, uniform block array declarations
          *     must specify an array size.
          *
          * And a few paragraphs later:
          *
          *     Geometry shader input blocks must be declared as arrays and
          *     follow the array declaration and linking rules for all
          *     geometry shader inputs. All other input and output block
          *     arrays must specify an array size.
          *
          * The upshot of this is that the only circumstance where an
          * interface array size *doesn't* need to be specified is on a
          * geometry shader input.
          */
         if (this->array_specifier->is_unsized_array &&
             (state->stage != MESA_SHADER_GEOMETRY || !this->layout.flags.q.in)) {
            _mesa_glsl_error(&loc, state,
                             "only geometry shader inputs may be unsized "
                             "instance block arrays");

         }

         const glsl_type *block_array_type =
            process_array_type(&loc, block_type, this->array_specifier, state);

         var = new(state) ir_variable(block_array_type,
                                      this->instance_name,
                                      var_mode);
      } else {
         var = new(state) ir_variable(block_type,
                                      this->instance_name,
                                      var_mode);
      }

      var->data.matrix_layout = matrix_layout == GLSL_MATRIX_LAYOUT_INHERITED
         ? GLSL_MATRIX_LAYOUT_COLUMN_MAJOR : matrix_layout;

      if (state->stage == MESA_SHADER_GEOMETRY && var_mode == ir_var_shader_in)
         handle_geometry_shader_input_decl(state, loc, var);

      if (ir_variable *earlier =
          state->symbols->get_variable(this->instance_name)) {
         if (!redeclaring_per_vertex) {
            _mesa_glsl_error(&loc, state, "`%s' redeclared",
                             this->instance_name);
         }
         earlier->data.how_declared = ir_var_declared_normally;
         earlier->type = var->type;
         earlier->reinit_interface_type(block_type);
         delete var;
      } else {
         /* Propagate the "binding" keyword into this UBO's fields;
          * the UBO declaration itself doesn't get an ir_variable unless it
          * has an instance name.  This is ugly.
          */
         var->data.explicit_binding = this->layout.flags.q.explicit_binding;
         var->data.binding = this->layout.binding;

         state->symbols->add_variable(var);
         instructions->push_tail(var);
      }
   } else {
      /* In order to have an array size, the block must also be declared with
       * an instance name.
       */
      assert(this->array_specifier == NULL);

      for (unsigned i = 0; i < num_variables; i++) {
         ir_variable *var =
            new(state) ir_variable(fields[i].type,
                                   ralloc_strdup(state, fields[i].name),
                                   var_mode);
         var->data.interpolation = fields[i].interpolation;
         var->data.centroid = fields[i].centroid;
         var->data.sample = fields[i].sample;
         var->init_interface_type(block_type);

         if (fields[i].matrix_layout == GLSL_MATRIX_LAYOUT_INHERITED) {
            var->data.matrix_layout = matrix_layout == GLSL_MATRIX_LAYOUT_INHERITED
               ? GLSL_MATRIX_LAYOUT_COLUMN_MAJOR : matrix_layout;
         } else {
            var->data.matrix_layout = fields[i].matrix_layout;
         }

         if (fields[i].stream != -1 &&
             ((unsigned)fields[i].stream) != this->layout.stream) {
            _mesa_glsl_error(&loc, state,
                             "stream layout qualifier on "
                             "interface block member `%s' does not match "
                             "the interface block (%d vs %d)",
                             var->name, fields[i].stream, this->layout.stream);
         }

         var->data.stream = this->layout.stream;

         /* Examine var name here since var may get deleted in the next call */
         bool var_is_gl_id = is_gl_identifier(var->name);

         if (redeclaring_per_vertex) {
            ir_variable *earlier =
               get_variable_being_redeclared(var, loc, state,
                                             true /* allow_all_redeclarations */);
            if (!var_is_gl_id || earlier == NULL) {
               _mesa_glsl_error(&loc, state,
                                "redeclaration of gl_PerVertex can only "
                                "include built-in variables");
            } else if (earlier->data.how_declared == ir_var_declared_normally) {
               _mesa_glsl_error(&loc, state,
                                "`%s' has already been redeclared",
                                earlier->name);
            } else {
               earlier->data.how_declared = ir_var_declared_in_block;
               earlier->reinit_interface_type(block_type);
            }
            continue;
         }

         if (state->symbols->get_variable(var->name) != NULL)
            _mesa_glsl_error(&loc, state, "`%s' redeclared", var->name);

         /* Propagate the "binding" keyword into this UBO's fields;
          * the UBO declaration itself doesn't get an ir_variable unless it
          * has an instance name.  This is ugly.
          */
         var->data.explicit_binding = this->layout.flags.q.explicit_binding;
         var->data.binding = this->layout.binding;

         state->symbols->add_variable(var);
         instructions->push_tail(var);
      }

      if (redeclaring_per_vertex && block_type != earlier_per_vertex) {
         /* From section 7.1 ("Built-in Language Variables") of the GLSL 4.10 spec:
          *
          *     It is also a compilation error ... to redeclare a built-in
          *     block and then use a member from that built-in block that was
          *     not included in the redeclaration.
          *
          * This appears to be a clarification to the behaviour established
          * for gl_PerVertex by GLSL 1.50, therefore we implement this
          * behaviour regardless of GLSL version.
          *
          * To prevent the shader from using a member that was not included in
          * the redeclaration, we disable any ir_variables that are still
          * associated with the old declaration of gl_PerVertex (since we've
          * already updated all of the variables contained in the new
          * gl_PerVertex to point to it).
          *
          * As a side effect this will prevent
          * validate_intrastage_interface_blocks() from getting confused and
          * thinking there are conflicting definitions of gl_PerVertex in the
          * shader.
          */
         foreach_in_list_safe(ir_instruction, node, instructions) {
            ir_variable *const var = node->as_variable();
            if (var != NULL &&
                var->get_interface_type() == earlier_per_vertex &&
                var->data.mode == var_mode) {
               if (var->data.how_declared == ir_var_declared_normally) {
                  _mesa_glsl_error(&loc, state,
                                   "redeclaration of gl_PerVertex cannot "
                                   "follow a redeclaration of `%s'",
                                   var->name);
               }
               state->symbols->disable_variable(var->name);
               var->remove();
            }
         }
      }
   }

   return NULL;
}


ir_rvalue *
ast_gs_input_layout::hir(exec_list *instructions,
                         struct _mesa_glsl_parse_state *state)
{
   YYLTYPE loc = this->get_location();

   /* If any geometry input layout declaration preceded this one, make sure it
    * was consistent with this one.
    */
   if (state->gs_input_prim_type_specified &&
       state->in_qualifier->prim_type != this->prim_type) {
      _mesa_glsl_error(&loc, state,
                       "geometry shader input layout does not match"
                       " previous declaration");
      return NULL;
   }

   /* If any shader inputs occurred before this declaration and specified an
    * array size, make sure the size they specified is consistent with the
    * primitive type.
    */
   unsigned num_vertices = vertices_per_prim(this->prim_type);
   if (state->gs_input_size != 0 && state->gs_input_size != num_vertices) {
      _mesa_glsl_error(&loc, state,
                       "this geometry shader input layout implies %u vertices"
                       " per primitive, but a previous input is declared"
                       " with size %u", num_vertices, state->gs_input_size);
      return NULL;
   }

   state->gs_input_prim_type_specified = true;

   /* If any shader inputs occurred before this declaration and did not
    * specify an array size, their size is determined now.
    */
   foreach_in_list(ir_instruction, node, instructions) {
      ir_variable *var = node->as_variable();
      if (var == NULL || var->data.mode != ir_var_shader_in)
         continue;

      /* Note: gl_PrimitiveIDIn has mode ir_var_shader_in, but it's not an
       * array; skip it.
       */

      if (var->type->is_unsized_array()) {
         if (var->data.max_array_access >= num_vertices) {
            _mesa_glsl_error(&loc, state,
                             "this geometry shader input layout implies %u"
                             " vertices, but an access to element %u of input"
                             " `%s' already exists", num_vertices,
                             var->data.max_array_access, var->name);
         } else {
            var->type = glsl_type::get_array_instance(var->type->fields.array,
                                                      num_vertices);
         }
      }
   }

   return NULL;
}


ir_rvalue *
ast_cs_input_layout::hir(exec_list *instructions,
                         struct _mesa_glsl_parse_state *state)
{
   YYLTYPE loc = this->get_location();

   /* If any compute input layout declaration preceded this one, make sure it
    * was consistent with this one.
    */
   if (state->cs_input_local_size_specified) {
      for (int i = 0; i < 3; i++) {
         if (state->cs_input_local_size[i] != this->local_size[i]) {
            _mesa_glsl_error(&loc, state,
                             "compute shader input layout does not match"
                             " previous declaration");
            return NULL;
         }
      }
   }

   /* From the ARB_compute_shader specification:
    *
    *     If the local size of the shader in any dimension is greater
    *     than the maximum size supported by the implementation for that
    *     dimension, a compile-time error results.
    *
    * It is not clear from the spec how the error should be reported if
    * the total size of the work group exceeds
    * MAX_COMPUTE_WORK_GROUP_INVOCATIONS, but it seems reasonable to
    * report it at compile time as well.
    */
   GLuint64 total_invocations = 1;
   for (int i = 0; i < 3; i++) {
      if (this->local_size[i] > state->ctx->Const.MaxComputeWorkGroupSize[i]) {
         _mesa_glsl_error(&loc, state,
                          "local_size_%c exceeds MAX_COMPUTE_WORK_GROUP_SIZE"
                          " (%d)", 'x' + i,
                          state->ctx->Const.MaxComputeWorkGroupSize[i]);
         break;
      }
      total_invocations *= this->local_size[i];
      if (total_invocations >
          state->ctx->Const.MaxComputeWorkGroupInvocations) {
         _mesa_glsl_error(&loc, state,
                          "product of local_sizes exceeds "
                          "MAX_COMPUTE_WORK_GROUP_INVOCATIONS (%d)",
                          state->ctx->Const.MaxComputeWorkGroupInvocations);
         break;
      }
   }

   state->cs_input_local_size_specified = true;
   for (int i = 0; i < 3; i++)
      state->cs_input_local_size[i] = this->local_size[i];

   /* We may now declare the built-in constant gl_WorkGroupSize (see
    * builtin_variable_generator::generate_constants() for why we didn't
    * declare it earlier).
    */
   ir_variable *var = new(state->symbols)
      ir_variable(glsl_type::ivec3_type, "gl_WorkGroupSize", ir_var_auto);
   var->data.how_declared = ir_var_declared_implicitly;
   var->data.read_only = true;
   instructions->push_tail(var);
   state->symbols->add_variable(var);
   ir_constant_data data;
   memset(&data, 0, sizeof(data));
   for (int i = 0; i < 3; i++)
      data.i[i] = this->local_size[i];
   var->constant_value = new(var) ir_constant(glsl_type::ivec3_type, &data);
   var->constant_initializer =
      new(var) ir_constant(glsl_type::ivec3_type, &data);
   var->data.has_initializer = true;

   return NULL;
}


static void
detect_conflicting_assignments(struct _mesa_glsl_parse_state *state,
                               exec_list *instructions)
{
   bool gl_FragColor_assigned = false;
   bool gl_FragData_assigned = false;
   bool user_defined_fs_output_assigned = false;
   ir_variable *user_defined_fs_output = NULL;

   /* It would be nice to have proper location information. */
   YYLTYPE loc;
   memset(&loc, 0, sizeof(loc));

   foreach_in_list(ir_instruction, node, instructions) {
      ir_variable *var = node->as_variable();

      if (!var || !var->data.assigned)
         continue;

      if (strcmp(var->name, "gl_FragColor") == 0)
         gl_FragColor_assigned = true;
      else if (strcmp(var->name, "gl_FragData") == 0)
         gl_FragData_assigned = true;
      else if (!is_gl_identifier(var->name)) {
         if (state->stage == MESA_SHADER_FRAGMENT &&
             var->data.mode == ir_var_shader_out) {
            user_defined_fs_output_assigned = true;
            user_defined_fs_output = var;
         }
      }
   }

   /* From the GLSL 1.30 spec:
    *
    *     "If a shader statically assigns a value to gl_FragColor, it
    *      may not assign a value to any element of gl_FragData. If a
    *      shader statically writes a value to any element of
    *      gl_FragData, it may not assign a value to
    *      gl_FragColor. That is, a shader may assign values to either
    *      gl_FragColor or gl_FragData, but not both. Multiple shaders
    *      linked together must also consistently write just one of
    *      these variables.  Similarly, if user declared output
    *      variables are in use (statically assigned to), then the
    *      built-in variables gl_FragColor and gl_FragData may not be
    *      assigned to. These incorrect usages all generate compile
    *      time errors."
    */
   if (gl_FragColor_assigned && gl_FragData_assigned) {
      _mesa_glsl_error(&loc, state, "fragment shader writes to both "
                       "`gl_FragColor' and `gl_FragData'");
   } else if (gl_FragColor_assigned && user_defined_fs_output_assigned) {
      _mesa_glsl_error(&loc, state, "fragment shader writes to both "
                       "`gl_FragColor' and `%s'",
                       user_defined_fs_output->name);
   } else if (gl_FragData_assigned && user_defined_fs_output_assigned) {
      _mesa_glsl_error(&loc, state, "fragment shader writes to both "
                       "`gl_FragData' and `%s'",
                       user_defined_fs_output->name);
   }
}


static void
remove_per_vertex_blocks(exec_list *instructions,
                         _mesa_glsl_parse_state *state, ir_variable_mode mode)
{
   /* Find the gl_PerVertex interface block of the appropriate (in/out) mode,
    * if it exists in this shader type.
    */
   const glsl_type *per_vertex = NULL;
   switch (mode) {
   case ir_var_shader_in:
      if (ir_variable *gl_in = state->symbols->get_variable("gl_in"))
         per_vertex = gl_in->get_interface_type();
      break;
   case ir_var_shader_out:
      if (ir_variable *gl_Position =
          state->symbols->get_variable("gl_Position")) {
         per_vertex = gl_Position->get_interface_type();
      }
      break;
   default:
      assert(!"Unexpected mode");
      break;
   }

   /* If we didn't find a built-in gl_PerVertex interface block, then we don't
    * need to do anything.
    */
   if (per_vertex == NULL)
      return;

   /* If the interface block is used by the shader, then we don't need to do
    * anything.
    */
   interface_block_usage_visitor v(mode, per_vertex);
   v.run(instructions);
   if (v.usage_found())
      return;

   /* Remove any ir_variable declarations that refer to the interface block
    * we're removing.
    */
   foreach_in_list_safe(ir_instruction, node, instructions) {
      ir_variable *const var = node->as_variable();
      if (var != NULL && var->get_interface_type() == per_vertex &&
          var->data.mode == mode) {
         state->symbols->disable_variable(var->name);
         var->remove();
      }
   }
}
@


1.1.1.2
log
@initial import of MesaLib-10.3.5
@
text
@d52 1
a56 1
#include "program/hash_table.h"
a57 11
#include "ir_builder.h"

using namespace ir_builder;

static void
detect_conflicting_assignments(struct _mesa_glsl_parse_state *state,
			       exec_list *instructions);
static void
remove_per_vertex_blocks(exec_list *instructions,
                         _mesa_glsl_parse_state *state, ir_variable_mode mode);

d63 1
d65 1
a65 1
   state->symbols->separate_function_namespace = state->language_version == 110;
a70 3
   state->gs_input_prim_type_specified = false;
   state->cs_input_local_size_specified = false;

a89 1
   detect_conflicting_assignments(state, instructions);
a91 82

   /* Move all of the variable declarations to the front of the IR list, and
    * reverse the order.  This has the (intended!) side effect that vertex
    * shader inputs and fragment shader outputs will appear in the IR in the
    * same order that they appeared in the shader code.  This results in the
    * locations being assigned in the declared order.  Many (arguably buggy)
    * applications depend on this behavior, and it matches what nearly all
    * other drivers do.
    */
   foreach_in_list_safe(ir_instruction, node, instructions) {
      ir_variable *const var = node->as_variable();

      if (var == NULL)
         continue;

      var->remove();
      instructions->push_head(var);
   }

   /* Figure out if gl_FragCoord is actually used in fragment shader */
   ir_variable *const var = state->symbols->get_variable("gl_FragCoord");
   if (var != NULL)
      state->fs_uses_gl_fragcoord = var->data.used;

   /* From section 7.1 (Built-In Language Variables) of the GLSL 4.10 spec:
    *
    *     If multiple shaders using members of a built-in block belonging to
    *     the same interface are linked together in the same program, they
    *     must all redeclare the built-in block in the same way, as described
    *     in section 4.3.7 "Interface Blocks" for interface block matching, or
    *     a link error will result.
    *
    * The phrase "using members of a built-in block" implies that if two
    * shaders are linked together and one of them *does not use* any members
    * of the built-in block, then that shader does not need to have a matching
    * redeclaration of the built-in block.
    *
    * This appears to be a clarification to the behaviour established for
    * gl_PerVertex by GLSL 1.50, therefore implement it regardless of GLSL
    * version.
    *
    * The definition of "interface" in section 4.3.7 that applies here is as
    * follows:
    *
    *     The boundary between adjacent programmable pipeline stages: This
    *     spans all the outputs in all compilation units of the first stage
    *     and all the inputs in all compilation units of the second stage.
    *
    * Therefore this rule applies to both inter- and intra-stage linking.
    *
    * The easiest way to implement this is to check whether the shader uses
    * gl_PerVertex right after ast-to-ir conversion, and if it doesn't, simply
    * remove all the relevant variable declaration from the IR, so that the
    * linker won't see them and complain about mismatches.
    */
   remove_per_vertex_blocks(instructions, state, ir_var_shader_in);
   remove_per_vertex_blocks(instructions, state, ir_var_shader_out);
}


static ir_expression_operation
get_conversion_operation(const glsl_type *to, const glsl_type *from,
                         struct _mesa_glsl_parse_state *state)
{
   switch (to->base_type) {
   case GLSL_TYPE_FLOAT:
      switch (from->base_type) {
      case GLSL_TYPE_INT: return ir_unop_i2f;
      case GLSL_TYPE_UINT: return ir_unop_u2f;
      default: return (ir_expression_operation)0;
      }

   case GLSL_TYPE_UINT:
      if (!state->is_version(400, 0) && !state->ARB_gpu_shader5_enable)
         return (ir_expression_operation)0;
      switch (from->base_type) {
         case GLSL_TYPE_INT: return ir_unop_i2u;
         default: return (ir_expression_operation)0;
      }

   default: return (ir_expression_operation)0;
   }
d110 1
a110 1
                          struct _mesa_glsl_parse_state *state)
d116 4
a119 2
   /* Prior to GLSL 1.20, there are no implicit conversions */
   if (!state->is_version(120, 0))
d126 2
a127 1
    *    array of float.
d129 4
a132 1
   if (!to->is_numeric() || !from->type->is_numeric())
d135 18
a152 13
   /* We don't actually want the specific type `to`, we want a type
    * with the same base type as `to`, but the same vector width as
    * `from`.
    */
   to = glsl_type::get_instance(to->base_type, from->type->vector_elements,
                                from->type->matrix_columns);

   ir_expression_operation op = get_conversion_operation(to, from->type, state);
   if (op) {
      from = new(ctx) ir_expression(op, to, from, NULL);
      return true;
   } else {
      return false;
d154 2
d161 2
a162 2
                       bool multiply,
                       struct _mesa_glsl_parse_state *state, YYLTYPE *loc)
d175 1
a175 1
                       "operands to arithmetic operators must be numeric");
d187 2
a188 2
                       "could not implicitly convert operands to "
                       "arithmetic operator");
d205 1
a205 1
                       "base type mismatch for arithmetic operator");
d227 1
a227 1
         return type_b;
d245 1
a245 1
         return type_a;
d247 3
a249 3
         _mesa_glsl_error(loc, state,
                          "vector size mismatch for arithmetic operator");
         return glsl_type::error_type;
d280 1
a280 1
         return type_a;
d283 16
a298 16
         /* Matrix multiply.  The columns of A must match the rows of B.  Given
          * the other previously tested constraints, this means the vector type
          * of a row from A must be the same as the vector type of a column from
          * B.
          */
         if (type_a->row_type() == type_b->column_type()) {
            /* The resulting matrix has the number of columns of matrix B and
             * the number of rows of matrix A.  We get the row count of A by
             * looking at the size of a vector that makes up a column.  The
             * transpose (size of a row) is done for B.
             */
            const glsl_type *const type =
               glsl_type::get_instance(type_a->base_type,
                                       type_a->column_type()->vector_elements,
                                       type_b->row_type()->vector_elements);
            assert(type != glsl_type::error_type);
d300 2
a301 2
            return type;
         }
d303 32
a334 18
         /* A is a matrix and B is a column vector.  Columns of A must match
          * rows of B.  Given the other previously tested constraints, this
          * means the vector type of a row from A must be the same as the
          * vector the type of B.
          */
         if (type_a->row_type() == type_b) {
            /* The resulting vector has a number of elements equal to
             * the number of rows of matrix A. */
            const glsl_type *const type =
               glsl_type::get_instance(type_a->base_type,
                                       type_a->column_type()->vector_elements,
                                       1);
            assert(type != glsl_type::error_type);

            return type;
         }
      } else {
         assert(type_b->is_matrix());
d336 2
a337 16
         /* A is a row vector and B is a matrix.  Columns of A must match rows
          * of B.  Given the other previously tested constraints, this means
          * the type of A must be the same as the vector type of a column from
          * B.
          */
         if (type_a == type_b->column_type()) {
            /* The resulting vector has a number of elements equal to
             * the number of columns of matrix B. */
            const glsl_type *const type =
               glsl_type::get_instance(type_a->base_type,
                                       type_b->row_type()->vector_elements,
                                       1);
            assert(type != glsl_type::error_type);

            return type;
         }
d354 1
a354 1
                             struct _mesa_glsl_parse_state *state, YYLTYPE *loc)
d366 1
a366 1
                       "operands to arithmetic operators must be numeric");
d388 2
a389 1
    if (!state->check_bitwise_operations_allowed(loc)) {
d441 2
a442 2
                    const struct glsl_type *type_b,
                    struct _mesa_glsl_parse_state *state, YYLTYPE *loc)
d444 4
a447 1
   if (!state->check_version(130, 300, loc, "operator '%%' is reserved")) {
d456 3
a458 11
   if (!type_a->is_integer()) {
      _mesa_glsl_error(loc, state, "LHS of operator %% must be an integer");
      return glsl_type::error_type;
   }
   if (!type_b->is_integer()) {
      _mesa_glsl_error(loc, state, "RHS of operator %% must be an integer");
      return glsl_type::error_type;
   }
   if (type_a->base_type != type_b->base_type) {
      _mesa_glsl_error(loc, state,
                       "operands of %% must have the same base type");
d469 2
a470 2
          || (type_a->vector_elements == type_b->vector_elements))
      return type_a;
d484 1
a484 1
                       struct _mesa_glsl_parse_state *state, YYLTYPE *loc)
d499 2
a500 2
                       "operands to relational operators must be scalar and "
                       "numeric");
d511 2
a512 2
                       "could not implicitly convert operands to "
                       "relational operator");
d543 2
a544 1
   if (!state->check_bitwise_operations_allowed(loc)) {
d556 1
a556 1
                       "integer vector", ast_expression::operator_string(op));
d562 1
a562 1
                       "integer vector", ast_expression::operator_string(op));
d570 3
a572 3
      _mesa_glsl_error(loc, state, "if the first operand of %s is scalar, the "
                       "second must be scalar as well",
                       ast_expression::operator_string(op));
d582 3
a584 3
      _mesa_glsl_error(loc, state, "vector operands to operator %s must "
                       "have same number of elements",
                       ast_expression::operator_string(op));
d612 2
a613 2
                    YYLTYPE loc, const glsl_type *lhs_type,
                    ir_rvalue *rhs, bool is_initializer)
d626 1
a626 1
   /* If the array element types are the same and the LHS is unsized,
d633 4
a636 9
   if (lhs_type->is_unsized_array() && rhs->type->is_array()
       && (lhs_type->element_type() == rhs->type->element_type())) {
      if (is_initializer) {
         return rhs;
      } else {
         _mesa_glsl_error(&loc, state,
                          "implicitly sized arrays cannot be assigned");
         return NULL;
      }
a644 6
   _mesa_glsl_error(&loc, state,
                    "%s of type %s cannot be assigned to "
                    "variable of type %s",
                    is_initializer ? "initializer" : "value",
                    rhs->type->name, lhs_type->name);

d654 1
a654 1
      deref->var->data.max_array_access = deref->type->length - 1;
d658 1
a658 1
static bool
d660 2
a661 5
              const char *non_lvalue_description,
              ir_rvalue *lhs, ir_rvalue *rhs,
              ir_rvalue **out_rvalue, bool needs_rvalue,
              bool is_initializer,
              YYLTYPE lhs_loc)
a664 41
   ir_rvalue *extract_channel = NULL;

   /* If the assignment LHS comes back as an ir_binop_vector_extract
    * expression, move it to the RHS as an ir_triop_vector_insert.
    */
   if (lhs->ir_type == ir_type_expression) {
      ir_expression *const lhs_expr = lhs->as_expression();

      if (unlikely(lhs_expr->operation == ir_binop_vector_extract)) {
         ir_rvalue *new_rhs =
            validate_assignment(state, lhs_loc, lhs->type,
                                rhs, is_initializer);

         if (new_rhs == NULL) {
            return lhs;
         } else {
            /* This converts:
             * - LHS: (expression float vector_extract <vec> <channel>)
             * - RHS: <scalar>
             * into:
             * - LHS: <vec>
             * - RHS: (expression vec2 vector_insert <vec> <channel> <scalar>)
             *
             * The LHS type is now a vector instead of a scalar.  Since GLSL
             * allows assignments to be used as rvalues, we need to re-extract
             * the channel from assignment_temp when returning the rvalue.
             */
            extract_channel = lhs_expr->operands[1];
            rhs = new(ctx) ir_expression(ir_triop_vector_insert,
                                         lhs_expr->operands[0]->type,
                                         lhs_expr->operands[0],
                                         new_rhs,
                                         extract_channel);
            lhs = lhs_expr->operands[0]->clone(ctx, NULL);
         }
      }
   }

   ir_variable *lhs_var = lhs->variable_referenced();
   if (lhs_var)
      lhs_var->data.assigned = true;
d667 2
a668 6
      if (non_lvalue_description != NULL) {
         _mesa_glsl_error(&lhs_loc, state,
                          "assignment to %s",
                          non_lvalue_description);
         error_emitted = true;
      } else if (lhs_var != NULL && lhs_var->data.read_only) {
d671 1
a671 13
                          lhs_var->name);
         error_emitted = true;
      } else if (lhs->type->is_array() &&
                 !state->check_version(120, 300, &lhs_loc,
                                       "whole array assignment forbidden")) {
         /* From page 32 (page 38 of the PDF) of the GLSL 1.10 spec:
          *
          *    "Other binary or unary expressions, non-dereferenced
          *     arrays, function names, swizzles with repeated fields,
          *     and constants cannot be l-values."
          *
          * The restriction on arrays is lifted in GLSL 1.20 and GLSL ES 3.00.
          */
d673 11
d685 2
a686 2
         _mesa_glsl_error(& lhs_loc, state, "non-lvalue in assignment");
         error_emitted = true;
d691 4
a694 2
      validate_assignment(state, lhs_loc, lhs->type, rhs, is_initializer);
   if (new_rhs != NULL) {
d702 2
a703 2
      if (lhs->type->is_unsized_array()) {
         ir_dereference *const d = lhs->as_dereference();
d705 1
a705 1
         assert(d != NULL);
d707 1
a707 1
         ir_variable *const var = d->variable_referenced();
d709 1
a709 1
         assert(var != NULL);
d711 6
a716 6
         if (var->data.max_array_access >= unsigned(rhs->type->array_size())) {
            /* FINISHME: This should actually log the location of the RHS. */
            _mesa_glsl_error(& lhs_loc, state, "array size must be > %u due to "
                             "previous access",
                             var->data.max_array_access);
         }
d718 3
a720 7
         var->type = glsl_type::get_array_instance(lhs->type->element_type(),
                                                   rhs->type->array_size());
         d->type = var->type;
      }
      if (lhs->type->is_array()) {
         mark_whole_array_access(rhs);
         mark_whole_array_access(lhs);
d722 2
d731 13
a743 6
    */
   if (needs_rvalue) {
      ir_variable *var = new(ctx) ir_variable(rhs->type, "assignment_tmp",
                                              ir_var_temporary);
      instructions->push_tail(var);
      instructions->push_tail(assign(var, rhs));
d745 2
a746 5
      if (!error_emitted) {
         ir_dereference_variable *deref_var = new(ctx) ir_dereference_variable(var);
         instructions->push_tail(new(ctx) ir_assignment(lhs, deref_var));
      }
      ir_rvalue *rvalue = new(ctx) ir_dereference_variable(var);
d748 1
a748 14
      if (extract_channel) {
         rvalue = new(ctx) ir_expression(ir_binop_vector_extract,
                                         rvalue,
                                         extract_channel->clone(ctx, NULL));
      }

      *out_rvalue = rvalue;
   } else {
      if (!error_emitted)
         instructions->push_tail(new(ctx) ir_assignment(lhs, rhs));
      *out_rvalue = NULL;
   }

   return error_emitted;
d760 1
a760 1
   var->data.mode = ir_var_auto;
d763 6
a768 1
						  lvalue));
d775 2
a776 1
ast_node::hir(exec_list *instructions, struct _mesa_glsl_parse_state *state)
a783 14
void
ast_function_expression::hir_no_rvalue(exec_list *instructions,
                                       struct _mesa_glsl_parse_state *state)
{
   (void)hir(instructions, state);
}

void
ast_aggregate_initializer::hir_no_rvalue(exec_list *instructions,
                                         struct _mesa_glsl_parse_state *state)
{
   (void)hir(instructions, state);
}

d804 1
a804 1
         ir_rvalue *e0, *e1, *result;
d806 11
a816 11
         e0 = new(mem_ctx) ir_dereference_array(op0->clone(mem_ctx, NULL),
                                                new(mem_ctx) ir_constant(i));
         e1 = new(mem_ctx) ir_dereference_array(op1->clone(mem_ctx, NULL),
                                                new(mem_ctx) ir_constant(i));
         result = do_comparison(mem_ctx, operation, e0, e1);

         if (cmp) {
            cmp = new(mem_ctx) ir_expression(join_op, cmp, result);
         } else {
            cmp = result;
         }
d826 2
a827 2
         ir_rvalue *e0, *e1, *result;
         const char *field_name = op0->type->fields.structure[i].name;
d829 11
a839 11
         e0 = new(mem_ctx) ir_dereference_record(op0->clone(mem_ctx, NULL),
                                                 field_name);
         e1 = new(mem_ctx) ir_dereference_record(op1->clone(mem_ctx, NULL),
                                                 field_name);
         result = do_comparison(mem_ctx, operation, e0, e1);

         if (cmp) {
            cmp = new(mem_ctx) ir_expression(join_op, cmp, result);
         } else {
            cmp = result;
         }
a846 3
   case GLSL_TYPE_IMAGE:
   case GLSL_TYPE_INTERFACE:
   case GLSL_TYPE_ATOMIC_UINT:
d851 4
d885 2
a886 2
                       operand_name,
                       parent_expr->operator_string(parent_expr->oper));
d897 1
a897 1
void
d909 1
a909 1
                       "be larger than gl_MaxTextureCoords (%u)",
d911 1
a911 36
   } else if (strcmp("gl_ClipDistance", name) == 0
              && size > state->Const.MaxClipPlanes) {
      /* From section 7.1 (Vertex Shader Special Variables) of the
       * GLSL 1.30 spec:
       *
       *   "The gl_ClipDistance array is predeclared as unsized and
       *   must be sized by the shader either redeclaring it with a
       *   size or indexing it only with integral constant
       *   expressions. ... The size can be at most
       *   gl_MaxClipDistances."
       */
      _mesa_glsl_error(&loc, state, "`gl_ClipDistance' array size cannot "
                       "be larger than gl_MaxClipDistances (%u)",
                       state->Const.MaxClipPlanes);
   }
}

/**
 * Create the constant 1, of a which is appropriate for incrementing and
 * decrementing values of the given GLSL type.  For example, if type is vec4,
 * this creates a constant value of 1.0 having type float.
 *
 * If the given type is invalid for increment and decrement operators, return
 * a floating point 1--the error will be detected later.
 */
static ir_rvalue *
constant_one_for_inc_dec(void *ctx, const glsl_type *type)
{
   switch (type->base_type) {
   case GLSL_TYPE_UINT:
      return new(ctx) ir_constant((unsigned) 1);
   case GLSL_TYPE_INT:
      return new(ctx) ir_constant(1);
   default:
   case GLSL_TYPE_FLOAT:
      return new(ctx) ir_constant(1.0f);
d913 1
d918 1
a918 16
                    struct _mesa_glsl_parse_state *state)
{
   return do_hir(instructions, state, true);
}

void
ast_expression::hir_no_rvalue(exec_list *instructions,
                              struct _mesa_glsl_parse_state *state)
{
   do_hir(instructions, state, false);
}

ir_rvalue *
ast_expression::do_hir(exec_list *instructions,
                       struct _mesa_glsl_parse_state *state,
                       bool needs_rvalue)
a984 4
   case ast_aggregate:
      assert(!"ast_aggregate: Should never get here.");
      break;

d989 3
a991 5
      error_emitted =
         do_assignment(instructions, state,
                       this->subexpressions[0]->non_lvalue_description,
                       op[0], op[1], &result, needs_rvalue, false,
                       this->subexpressions[0]->get_location());
d1013 1
a1013 1
                                      op[0], NULL);
d1024 2
a1025 2
                                    (this->oper == ast_mul),
                                    state, & loc);
d1029 1
a1029 1
                                      op[0], op[1]);
d1041 1
a1041 1
                                      op[0], op[1]);
d1047 3
a1049 1
       if (!state->check_bitwise_operations_allowed(&loc)) {
d1079 1
a1079 1
                                      op[0], op[1]);
d1098 10
a1107 13
           && !apply_implicit_conversion(op[1]->type, op[0], state))
          || (op[0]->type != op[1]->type)) {
         _mesa_glsl_error(& loc, state, "operands of `%s' must have the same "
                          "type", (this->oper == ast_equal) ? "==" : "!=");
         error_emitted = true;
      } else if ((op[0]->type->is_array() || op[1]->type->is_array()) &&
                 !state->check_version(120, 300, &loc,
                                       "array comparisons forbidden")) {
         error_emitted = true;
      } else if ((op[0]->type->contains_opaque() ||
                  op[1]->type->contains_opaque())) {
         _mesa_glsl_error(&loc, state, "opaque type comparisons forbidden");
         error_emitted = true;
d1111 1
a1111 1
         result = new(ctx) ir_constant(false);
d1113 2
a1114 2
         result = do_comparison(ctx, operations[this->oper], op[0], op[1]);
         assert(result->type == glsl_type::bool_type);
d1126 1
a1126 1
                                      op[0], op[1]);
d1133 3
a1135 2
      if (!state->check_bitwise_operations_allowed(&loc)) {
         error_emitted = true;
d1139 2
a1140 2
         _mesa_glsl_error(&loc, state, "operand of `~' must be an integer");
         error_emitted = true;
d1143 1
a1143 1
      type = error_emitted ? glsl_type::error_type : op[0]->type;
d1150 1
a1150 1
                                         "LHS", &error_emitted);
d1152 1
a1152 1
                                         "RHS", &error_emitted);
d1154 28
a1181 22
      if (rhs_instructions.is_empty()) {
         result = new(ctx) ir_expression(ir_binop_logic_and, op[0], op[1]);
         type = result->type;
      } else {
         ir_variable *const tmp = new(ctx) ir_variable(glsl_type::bool_type,
                                                       "and_tmp",
                                                       ir_var_temporary);
         instructions->push_tail(tmp);

         ir_if *const stmt = new(ctx) ir_if(op[0]);
         instructions->push_tail(stmt);

         stmt->then_instructions.append_list(&rhs_instructions);
         ir_dereference *const then_deref = new(ctx) ir_dereference_variable(tmp);
         ir_assignment *const then_assign =
            new(ctx) ir_assignment(then_deref, op[1]);
         stmt->then_instructions.push_tail(then_assign);

         ir_dereference *const else_deref = new(ctx) ir_dereference_variable(tmp);
         ir_assignment *const else_assign =
            new(ctx) ir_assignment(else_deref, new(ctx) ir_constant(false));
         stmt->else_instructions.push_tail(else_assign);
d1183 2
a1184 2
         result = new(ctx) ir_dereference_variable(tmp);
         type = tmp->type;
d1192 1
a1192 1
                                         "LHS", &error_emitted);
d1194 1
a1194 1
                                         "RHS", &error_emitted);
d1196 27
a1222 22
      if (rhs_instructions.is_empty()) {
         result = new(ctx) ir_expression(ir_binop_logic_or, op[0], op[1]);
         type = result->type;
      } else {
         ir_variable *const tmp = new(ctx) ir_variable(glsl_type::bool_type,
                                                       "or_tmp",
                                                       ir_var_temporary);
         instructions->push_tail(tmp);

         ir_if *const stmt = new(ctx) ir_if(op[0]);
         instructions->push_tail(stmt);

         ir_dereference *const then_deref = new(ctx) ir_dereference_variable(tmp);
         ir_assignment *const then_assign =
            new(ctx) ir_assignment(then_deref, new(ctx) ir_constant(true));
         stmt->then_instructions.push_tail(then_assign);

         stmt->else_instructions.append_list(&rhs_instructions);
         ir_dereference *const else_deref = new(ctx) ir_dereference_variable(tmp);
         ir_assignment *const else_assign =
            new(ctx) ir_assignment(else_deref, op[1]);
         stmt->else_instructions.push_tail(else_assign);
d1224 2
a1225 2
         result = new(ctx) ir_dereference_variable(tmp);
         type = tmp->type;
d1238 1
a1238 1
                                         &error_emitted);
d1240 1
a1240 1
                                         &error_emitted);
d1243 1
a1243 1
                                      op[0], op[1]);
d1248 1
a1248 1
                                         "operand", &error_emitted);
d1251 1
a1251 1
                                      op[0], NULL);
d1262 2
a1263 2
                                    (this->oper == ast_mul_assign),
                                    state, & loc);
d1266 1
a1266 1
                                                   op[0], op[1]);
d1268 4
a1271 6
      error_emitted =
         do_assignment(instructions, state,
                       this->subexpressions[0]->non_lvalue_description,
                       op[0]->clone(ctx, NULL), temp_rhs,
                       &result, needs_rvalue, false,
                       this->subexpressions[0]->get_location());
d1291 1
a1291 1
                                        op[0], op[1]);
d1293 4
a1296 6
      error_emitted =
         do_assignment(instructions, state,
                       this->subexpressions[0]->non_lvalue_description,
                       op[0]->clone(ctx, NULL), temp_rhs,
                       &result, needs_rvalue, false,
                       this->subexpressions[0]->get_location());
d1308 4
a1311 6
      error_emitted =
         do_assignment(instructions, state,
                       this->subexpressions[0]->non_lvalue_description,
                       op[0]->clone(ctx, NULL), temp_rhs,
                       &result, needs_rvalue, false,
                       this->subexpressions[0]->get_location());
d1324 4
a1327 6
      error_emitted =
         do_assignment(instructions, state,
                       this->subexpressions[0]->non_lvalue_description,
                       op[0]->clone(ctx, NULL), temp_rhs,
                       &result, needs_rvalue, false,
                       this->subexpressions[0]->get_location());
d1339 1
a1339 1
                                         "condition", &error_emitted);
d1362 8
a1369 8
          && !apply_implicit_conversion(op[2]->type, op[1], state))
          || (op[1]->type != op[2]->type)) {
         YYLTYPE loc = this->subexpressions[1]->get_location();

         _mesa_glsl_error(& loc, state, "second and third operands of ?: "
                          "operator must have matching types");
         error_emitted = true;
         type = glsl_type::error_type;
d1371 1
a1371 1
         type = op[1]->type;
d1379 4
a1382 5
      if (type->is_array() &&
          !state->check_version(120, 300, &loc,
                                "second and third operands of ?: operator "
                                "cannot be arrays")) {
         error_emitted = true;
d1390 24
a1413 24
          && else_instructions.is_empty()
          && (cond_val != NULL) && (then_val != NULL) && (else_val != NULL)) {
         result = (cond_val->value.b[0]) ? then_val : else_val;
      } else {
         ir_variable *const tmp =
            new(ctx) ir_variable(type, "conditional_tmp", ir_var_temporary);
         instructions->push_tail(tmp);

         ir_if *const stmt = new(ctx) ir_if(op[0]);
         instructions->push_tail(stmt);

         then_instructions.move_nodes_to(& stmt->then_instructions);
         ir_dereference *const then_deref =
            new(ctx) ir_dereference_variable(tmp);
         ir_assignment *const then_assign =
            new(ctx) ir_assignment(then_deref, op[1]);
         stmt->then_instructions.push_tail(then_assign);

         else_instructions.move_nodes_to(& stmt->else_instructions);
         ir_dereference *const else_deref =
            new(ctx) ir_dereference_variable(tmp);
         ir_assignment *const else_assign =
            new(ctx) ir_assignment(else_deref, op[2]);
         stmt->else_instructions.push_tail(else_assign);
d1415 1
a1415 1
         result = new(ctx) ir_dereference_variable(tmp);
a1421 3
      this->non_lvalue_description = (this->oper == ast_pre_inc)
         ? "pre-increment operation" : "pre-decrement operation";

d1423 4
a1426 1
      op[1] = constant_one_for_inc_dec(ctx, op[0]->type);
d1432 1
a1432 1
                                        op[0], op[1]);
d1434 4
a1437 6
      error_emitted =
         do_assignment(instructions, state,
                       this->subexpressions[0]->non_lvalue_description,
                       op[0]->clone(ctx, NULL), temp_rhs,
                       &result, needs_rvalue, false,
                       this->subexpressions[0]->get_location());
a1442 2
      this->non_lvalue_description = (this->oper == ast_post_inc)
         ? "post-increment operation" : "post-decrement operation";
d1444 4
a1447 1
      op[1] = constant_one_for_inc_dec(ctx, op[0]->type);
d1455 1
a1455 1
                                        op[0], op[1]);
d1462 3
a1464 7
      ir_rvalue *junk_rvalue;
      error_emitted =
         do_assignment(instructions, state,
                       this->subexpressions[0]->non_lvalue_description,
                       op[0]->clone(ctx, NULL), temp_rhs,
                       &junk_rvalue, false, false,
                       this->subexpressions[0]->get_location());
d1466 1
d1480 151
a1630 2
      result = _mesa_ast_array_index_to_hir(ctx, state, op[0], op[1],
                                            loc, index_loc);
d1632 2
a1633 2
      if (result->type->is_error())
         error_emitted = true;
d1651 3
a1653 1
         state->symbols->get_variable(this->primary_expression.identifier);
d1656 1
a1656 2
         var->data.used = true;
         result = new(ctx) ir_dereference_variable(var);
d1658 2
a1659 2
         _mesa_glsl_error(& loc, state, "`%s' undeclared",
                          this->primary_expression.identifier);
d1661 1
a1661 2
         result = ir_rvalue::error_value(ctx);
         error_emitted = true;
d1697 29
a1725 29
         /* If one of the operands of comma operator does not generate any
          * code, we want to emit a warning.  At each pass through the loop
          * previous_tail_pred will point to the last instruction in the
          * stream *before* processing the previous operand.  Naturally,
          * instructions->tail_pred will point to the last instruction in the
          * stream *after* processing the previous operand.  If the two
          * pointers match, then the previous operand had no effect.
          *
          * The warning behavior here differs slightly from GCC.  GCC will
          * only emit a warning if none of the left-hand operands have an
          * effect.  However, it will emit a warning for each.  I believe that
          * there are some cases in C (especially with GCC extensions) where
          * it is useful to have an intermediate step in a sequence have no
          * effect, but I don't think these cases exist in GLSL.  Either way,
          * it would be a giant hassle to replicate that behavior.
          */
         if (previous_tail_pred == instructions->tail_pred) {
            _mesa_glsl_warning(&previous_operand_loc, state,
                               "left-hand operand of comma expression has "
                               "no effect");
         }

         /* tail_pred is directly accessed instead of using the get_tail()
          * method for performance reasons.  get_tail() has extra code to
          * return NULL when the list is empty.  We don't care about that
          * here, so using tail_pred directly is fine.
          */
         previous_tail_pred = instructions->tail_pred;
         previous_operand_loc = ast->get_location();
d1727 1
a1727 1
         result = ast->hir(instructions, state);
d1737 1
a1737 1
   assert(result != NULL || !needs_rvalue);
d1739 1
a1739 1
   if (result && result->type->is_error() && !error_emitted)
d1748 1
a1748 1
                              struct _mesa_glsl_parse_state *state)
d1760 1
a1760 1
      expression->hir_no_rvalue(instructions, state);
d1770 1
a1770 1
                            struct _mesa_glsl_parse_state *state)
a1785 56
/**
 * Evaluate the given exec_node (which should be an ast_node representing
 * a single array dimension) and return its integer value.
 */
static unsigned
process_array_size(exec_node *node,
                   struct _mesa_glsl_parse_state *state)
{
   exec_list dummy_instructions;

   ast_node *array_size = exec_node_data(ast_node, node, link);
   ir_rvalue *const ir = array_size->hir(& dummy_instructions, state);
   YYLTYPE loc = array_size->get_location();

   if (ir == NULL) {
      _mesa_glsl_error(& loc, state,
                       "array size could not be resolved");
      return 0;
   }

   if (!ir->type->is_integer()) {
      _mesa_glsl_error(& loc, state,
                       "array size must be integer type");
      return 0;
   }

   if (!ir->type->is_scalar()) {
      _mesa_glsl_error(& loc, state,
                       "array size must be scalar type");
      return 0;
   }

   ir_constant *const size = ir->constant_expression_value();
   if (size == NULL) {
      _mesa_glsl_error(& loc, state, "array size must be a "
                       "constant valued expression");
      return 0;
   }

   if (size->value.i[0] <= 0) {
      _mesa_glsl_error(& loc, state, "array size must be > 0");
      return 0;
   }

   assert(size->type == ir->type);

   /* If the array size is const (and we've verified that
    * it is) then no instructions should have been emitted
    * when we converted it to HIR. If they were emitted,
    * then either the array size isn't const after all, or
    * we are emitting unnecessary instructions.
    */
   assert(dummy_instructions.is_empty());

   return size->value.u[0];
}
d1788 2
a1789 3
process_array_type(YYLTYPE *loc, const glsl_type *base,
                   ast_array_specifier *array_specifier,
                   struct _mesa_glsl_parse_state *state)
d1791 1
a1791 1
   const glsl_type *array_type = base;
d1793 1
a1793 2
   if (array_specifier != NULL) {
      if (base->is_array()) {
d1795 31
a1825 20
         /* From page 19 (page 25) of the GLSL 1.20 spec:
          *
          * "Only one-dimensional arrays may be declared."
          */
         if (!state->ARB_arrays_of_arrays_enable) {
            _mesa_glsl_error(loc, state,
                             "invalid array of `%s'"
                             "GL_ARB_arrays_of_arrays "
                             "required for defining arrays of arrays",
                             base->name);
            return glsl_type::error_type;
         }

         if (base->length == 0) {
            _mesa_glsl_error(loc, state,
                             "only the outermost array dimension can "
                             "be unsized",
                             base->name);
            return glsl_type::error_type;
         }
d1827 6
a1832 9

      for (exec_node *node = array_specifier->array_dimensions.tail_pred;
           !node->is_head_sentinel(); node = node->prev) {
         unsigned array_size = process_array_size(node, state);
         array_type = glsl_type::get_array_instance(array_type, array_size);
      }

      if (array_specifier->is_unsized_array)
         array_type = glsl_type::get_array_instance(array_type, 0);
d1835 1
a1835 1
   return array_type;
d1841 1
a1841 1
                              struct _mesa_glsl_parse_state *state) const
d1848 1
a1848 20
   YYLTYPE loc = this->get_location();
   type = process_array_type(&loc, type, this->array_specifier, state);

   return type;
}

const glsl_type *
ast_fully_specified_type::glsl_type(const char **name,
                                    struct _mesa_glsl_parse_state *state) const
{
   const struct glsl_type *type = this->specifier->glsl_type(name, state);

   if (type == NULL)
      return NULL;

   if (type->base_type == GLSL_TYPE_FLOAT
       && state->es_shader
       && state->stage == MESA_SHADER_FRAGMENT
       && this->qualifier.precision == ast_precision_none
       && state->symbols->get_variable("#default precision") == NULL) {
d1850 1
a1850 3
      _mesa_glsl_error(&loc, state,
                       "no precision specified this scope for type `%s'",
                       type->name);
d1856 6
a1861 11
/**
 * Determine whether a toplevel variable declaration declares a varying.  This
 * function operates by examining the variable's mode and the shader target,
 * so it correctly identifies linkage variables regardless of whether they are
 * declared using the deprecated "varying" syntax or the new "in/out" syntax.
 *
 * Passing a non-toplevel variable declaration (e.g. a function parameter) to
 * this function will produce undefined results.
 */
static bool
is_varying_var(ir_variable *var, gl_shader_stage target)
d1863 9
a1871 7
   switch (target) {
   case MESA_SHADER_VERTEX:
      return var->data.mode == ir_var_shader_out;
   case MESA_SHADER_FRAGMENT:
      return var->data.mode == ir_var_shader_in;
   default:
      return var->data.mode == ir_var_shader_out || var->data.mode == ir_var_shader_in;
a1872 1
}
d1874 4
d1879 2
a1880 39
/**
 * Matrix layout qualifiers are only allowed on certain types
 */
static void
validate_matrix_layout_for_type(struct _mesa_glsl_parse_state *state,
                                YYLTYPE *loc,
                                const glsl_type *type,
                                ir_variable *var)
{
   if (var && !var->is_in_uniform_block()) {
      /* Layout qualifiers may only apply to interface blocks and fields in
       * them.
       */
      _mesa_glsl_error(loc, state,
                       "uniform block layout qualifiers row_major and "
                       "column_major may not be applied to variables "
                       "outside of uniform blocks");
   } else if (!type->is_matrix()) {
      /* The OpenGL ES 3.0 conformance tests did not originally allow
       * matrix layout qualifiers on non-matrices.  However, the OpenGL
       * 4.4 and OpenGL ES 3.0 (revision TBD) specifications were
       * amended to specifically allow these layouts on all types.  Emit
       * a warning so that people know their code may not be portable.
       */
      _mesa_glsl_warning(loc, state,
                         "uniform block layout qualifiers row_major and "
                         "column_major applied to non-matrix types may "
                         "be rejected by older compilers");
   } else if (type->is_record()) {
      /* We allow 'layout(row_major)' on structure types because it's the only
       * way to get row-major layouts on matrices contained in structures.
       */
      _mesa_glsl_warning(loc, state,
                         "uniform block layout qualifiers row_major and "
                         "column_major applied to structure types is not "
                         "strictly conformant and may be rejected by other "
                         "compilers");
   }
}
d1882 2
a1883 7
static bool
validate_binding_qualifier(struct _mesa_glsl_parse_state *state,
                           YYLTYPE *loc,
                           ir_variable *var,
                           const ast_type_qualifier *qual)
{
   if (var->data.mode != ir_var_uniform) {
d1885 3
a1887 2
                       "the \"binding\" qualifier only applies to uniforms");
      return false;
d1890 8
a1897 4
   if (qual->binding < 0) {
      _mesa_glsl_error(loc, state, "binding values must be >= 0");
      return false;
   }
d1899 4
a1902 47
   const struct gl_context *const ctx = state->ctx;
   unsigned elements = var->type->is_array() ? var->type->length : 1;
   unsigned max_index = qual->binding + elements - 1;

   if (var->type->is_interface()) {
      /* UBOs.  From page 60 of the GLSL 4.20 specification:
       * "If the binding point for any uniform block instance is less than zero,
       *  or greater than or equal to the implementation-dependent maximum
       *  number of uniform buffer bindings, a compilation error will occur.
       *  When the binding identifier is used with a uniform block instanced as
       *  an array of size N, all elements of the array from binding through
       *  binding + N – 1 must be within this range."
       *
       * The implementation-dependent maximum is GL_MAX_UNIFORM_BUFFER_BINDINGS.
       */
      if (max_index >= ctx->Const.MaxUniformBufferBindings) {
         _mesa_glsl_error(loc, state, "layout(binding = %d) for %d UBOs exceeds "
                          "the maximum number of UBO binding points (%d)",
                          qual->binding, elements,
                          ctx->Const.MaxUniformBufferBindings);
         return false;
      }
   } else if (var->type->is_sampler() ||
              (var->type->is_array() && var->type->fields.array->is_sampler())) {
      /* Samplers.  From page 63 of the GLSL 4.20 specification:
       * "If the binding is less than zero, or greater than or equal to the
       *  implementation-dependent maximum supported number of units, a
       *  compilation error will occur. When the binding identifier is used
       *  with an array of size N, all elements of the array from binding
       *  through binding + N - 1 must be within this range."
       */
      unsigned limit = ctx->Const.Program[state->stage].MaxTextureImageUnits;

      if (max_index >= limit) {
         _mesa_glsl_error(loc, state, "layout(binding = %d) for %d samplers "
                          "exceeds the maximum number of texture image units "
                          "(%d)", qual->binding, elements, limit);

         return false;
      }
   } else if (var->type->contains_atomic()) {
      assert(ctx->Const.MaxAtomicBufferBindings <= MAX_COMBINED_ATOMIC_BUFFERS);
      if (unsigned(qual->binding) >= ctx->Const.MaxAtomicBufferBindings) {
         _mesa_glsl_error(loc, state, "layout(binding = %d) exceeds the "
                          " maximum number of atomic counter buffer bindings"
                          "(%d)", qual->binding,
                          ctx->Const.MaxAtomicBufferBindings);
d1904 4
a1907 1
         return false;
a1908 5
   } else {
      _mesa_glsl_error(loc, state,
                       "the \"binding\" qualifier only applies to uniform "
                       "blocks, samplers, atomic counters, or arrays thereof");
      return false;
d1911 13
a1923 2
   return true;
}
d1925 16
a1941 7
static glsl_interp_qualifier
interpret_interpolation_qualifier(const struct ast_type_qualifier *qual,
                                  ir_variable_mode mode,
                                  struct _mesa_glsl_parse_state *state,
                                  YYLTYPE *loc)
{
   glsl_interp_qualifier interpolation;
d1943 1
a1943 1
      interpolation = INTERP_QUALIFIER_FLAT;
d1945 1
a1945 3
      interpolation = INTERP_QUALIFIER_NOPERSPECTIVE;
   else if (qual->flags.q.smooth)
      interpolation = INTERP_QUALIFIER_SMOOTH;
d1947 1
a1947 1
      interpolation = INTERP_QUALIFIER_NONE;
d1949 6
a1954 6
   if (interpolation != INTERP_QUALIFIER_NONE) {
      if (mode != ir_var_shader_in && mode != ir_var_shader_out) {
         _mesa_glsl_error(loc, state,
                          "interpolation qualifier `%s' can only be applied to "
                          "shader inputs or outputs.",
                          interpolation_string(interpolation));
d1956 4
a1959 9
      }

      if ((state->stage == MESA_SHADER_VERTEX && mode == ir_var_shader_in) ||
          (state->stage == MESA_SHADER_FRAGMENT && mode == ir_var_shader_out)) {
         _mesa_glsl_error(loc, state,
                          "interpolation qualifier `%s' cannot be applied to "
                          "vertex shader inputs or fragment shader outputs",
                          interpolation_string(interpolation));
      }
d1962 56
a2017 454
   return interpolation;
}


static void
validate_explicit_location(const struct ast_type_qualifier *qual,
                           ir_variable *var,
                           struct _mesa_glsl_parse_state *state,
                           YYLTYPE *loc)
{
   bool fail = false;

   /* Checks for GL_ARB_explicit_uniform_location. */
   if (qual->flags.q.uniform) {
      if (!state->check_explicit_uniform_location_allowed(loc, var))
         return;

      const struct gl_context *const ctx = state->ctx;
      unsigned max_loc = qual->location + var->type->uniform_locations() - 1;

      /* ARB_explicit_uniform_location specification states:
       *
       *     "The explicitly defined locations and the generated locations
       *     must be in the range of 0 to MAX_UNIFORM_LOCATIONS minus one."
       *
       *     "Valid locations for default-block uniform variable locations
       *     are in the range of 0 to the implementation-defined maximum
       *     number of uniform locations."
       */
      if (qual->location < 0) {
         _mesa_glsl_error(loc, state,
                          "explicit location < 0 for uniform %s", var->name);
         return;
      }

      if (max_loc >= ctx->Const.MaxUserAssignableUniformLocations) {
         _mesa_glsl_error(loc, state, "location(s) consumed by uniform %s "
                          ">= MAX_UNIFORM_LOCATIONS (%u)", var->name,
                          ctx->Const.MaxUserAssignableUniformLocations);
         return;
      }

      var->data.explicit_location = true;
      var->data.location = qual->location;
      return;
   }

   /* Between GL_ARB_explicit_attrib_location an
    * GL_ARB_separate_shader_objects, the inputs and outputs of any shader
    * stage can be assigned explicit locations.  The checking here associates
    * the correct extension with the correct stage's input / output:
    *
    *                     input            output
    *                     -----            ------
    * vertex              explicit_loc     sso
    * geometry            sso              sso
    * fragment            sso              explicit_loc
    */
   switch (state->stage) {
   case MESA_SHADER_VERTEX:
      if (var->data.mode == ir_var_shader_in) {
         if (!state->check_explicit_attrib_location_allowed(loc, var))
            return;

         break;
      }

      if (var->data.mode == ir_var_shader_out) {
         if (!state->check_separate_shader_objects_allowed(loc, var))
            return;

         break;
      }

      fail = true;
      break;

   case MESA_SHADER_GEOMETRY:
      if (var->data.mode == ir_var_shader_in || var->data.mode == ir_var_shader_out) {
         if (!state->check_separate_shader_objects_allowed(loc, var))
            return;

         break;
      }

      fail = true;
      break;

   case MESA_SHADER_FRAGMENT:
      if (var->data.mode == ir_var_shader_in) {
         if (!state->check_separate_shader_objects_allowed(loc, var))
            return;

         break;
      }

      if (var->data.mode == ir_var_shader_out) {
         if (!state->check_explicit_attrib_location_allowed(loc, var))
            return;

         break;
      }

      fail = true;
      break;

   case MESA_SHADER_COMPUTE:
      _mesa_glsl_error(loc, state,
                       "compute shader variables cannot be given "
                       "explicit locations");
      return;
   };

   if (fail) {
      _mesa_glsl_error(loc, state,
                       "%s cannot be given an explicit location in %s shader",
                       mode_string(var),
      _mesa_shader_stage_to_string(state->stage));
   } else {
      var->data.explicit_location = true;

      /* This bit of silliness is needed because invalid explicit locations
       * are supposed to be flagged during linking.  Small negative values
       * biased by VERT_ATTRIB_GENERIC0 or FRAG_RESULT_DATA0 could alias
       * built-in values (e.g., -16+VERT_ATTRIB_GENERIC0 = VERT_ATTRIB_POS).
       * The linker needs to be able to differentiate these cases.  This
       * ensures that negative values stay negative.
       */
      if (qual->location >= 0) {
         switch (state->stage) {
         case MESA_SHADER_VERTEX:
            var->data.location = (var->data.mode == ir_var_shader_in)
               ? (qual->location + VERT_ATTRIB_GENERIC0)
               : (qual->location + VARYING_SLOT_VAR0);
            break;

         case MESA_SHADER_GEOMETRY:
            var->data.location = qual->location + VARYING_SLOT_VAR0;
            break;

         case MESA_SHADER_FRAGMENT:
            var->data.location = (var->data.mode == ir_var_shader_out)
               ? (qual->location + FRAG_RESULT_DATA0)
               : (qual->location + VARYING_SLOT_VAR0);
            break;
         case MESA_SHADER_COMPUTE:
            assert(!"Unexpected shader type");
            break;
         }
      } else {
         var->data.location = qual->location;
      }

      if (qual->flags.q.explicit_index) {
         /* From the GLSL 4.30 specification, section 4.4.2 (Output
          * Layout Qualifiers):
          *
          * "It is also a compile-time error if a fragment shader
          *  sets a layout index to less than 0 or greater than 1."
          *
          * Older specifications don't mandate a behavior; we take
          * this as a clarification and always generate the error.
          */
         if (qual->index < 0 || qual->index > 1) {
            _mesa_glsl_error(loc, state,
                             "explicit index may only be 0 or 1");
         } else {
            var->data.explicit_index = true;
            var->data.index = qual->index;
         }
      }
   }
}

static void
apply_image_qualifier_to_variable(const struct ast_type_qualifier *qual,
                                  ir_variable *var,
                                  struct _mesa_glsl_parse_state *state,
                                  YYLTYPE *loc)
{
   const glsl_type *base_type =
      (var->type->is_array() ? var->type->element_type() : var->type);

   if (base_type->is_image()) {
      if (var->data.mode != ir_var_uniform &&
          var->data.mode != ir_var_function_in) {
         _mesa_glsl_error(loc, state, "image variables may only be declared as "
                          "function parameters or uniform-qualified "
                          "global variables");
      }

      var->data.image.read_only |= qual->flags.q.read_only;
      var->data.image.write_only |= qual->flags.q.write_only;
      var->data.image.coherent |= qual->flags.q.coherent;
      var->data.image._volatile |= qual->flags.q._volatile;
      var->data.image.restrict_flag |= qual->flags.q.restrict_flag;
      var->data.read_only = true;

      if (qual->flags.q.explicit_image_format) {
         if (var->data.mode == ir_var_function_in) {
            _mesa_glsl_error(loc, state, "format qualifiers cannot be "
                             "used on image function parameters");
         }

         if (qual->image_base_type != base_type->sampler_type) {
            _mesa_glsl_error(loc, state, "format qualifier doesn't match the "
                             "base data type of the image");
         }

         var->data.image.format = qual->image_format;
      } else {
         if (var->data.mode == ir_var_uniform && !qual->flags.q.write_only) {
            _mesa_glsl_error(loc, state, "uniforms not qualified with "
                             "`writeonly' must have a format layout "
                             "qualifier");
         }

         var->data.image.format = GL_NONE;
      }
   }
}

static inline const char*
get_layout_qualifier_string(bool origin_upper_left, bool pixel_center_integer)
{
   if (origin_upper_left && pixel_center_integer)
      return "origin_upper_left, pixel_center_integer";
   else if (origin_upper_left)
      return "origin_upper_left";
   else if (pixel_center_integer)
      return "pixel_center_integer";
   else
      return " ";
}

static inline bool
is_conflicting_fragcoord_redeclaration(struct _mesa_glsl_parse_state *state,
                                       const struct ast_type_qualifier *qual)
{
   /* If gl_FragCoord was previously declared, and the qualifiers were
    * different in any way, return true.
    */
   if (state->fs_redeclares_gl_fragcoord) {
      return (state->fs_pixel_center_integer != qual->flags.q.pixel_center_integer
         || state->fs_origin_upper_left != qual->flags.q.origin_upper_left);
   }

   return false;
}

static void
apply_type_qualifier_to_variable(const struct ast_type_qualifier *qual,
                                 ir_variable *var,
                                 struct _mesa_glsl_parse_state *state,
                                 YYLTYPE *loc,
                                 bool is_parameter)
{
   STATIC_ASSERT(sizeof(qual->flags.q) <= sizeof(qual->flags.i));

   if (qual->flags.q.invariant) {
      if (var->data.used) {
         _mesa_glsl_error(loc, state,
                          "variable `%s' may not be redeclared "
                          "`invariant' after being used",
                          var->name);
      } else {
         var->data.invariant = 1;
      }
   }

   if (qual->flags.q.precise) {
      if (var->data.used) {
         _mesa_glsl_error(loc, state,
                          "variable `%s' may not be redeclared "
                          "`precise' after being used",
                          var->name);
      } else {
         var->data.precise = 1;
      }
   }

   if (qual->flags.q.constant || qual->flags.q.attribute
       || qual->flags.q.uniform
       || (qual->flags.q.varying && (state->stage == MESA_SHADER_FRAGMENT)))
      var->data.read_only = 1;

   if (qual->flags.q.centroid)
      var->data.centroid = 1;

   if (qual->flags.q.sample)
      var->data.sample = 1;

   if (state->stage == MESA_SHADER_GEOMETRY &&
       qual->flags.q.out && qual->flags.q.stream) {
      var->data.stream = qual->stream;
   }

   if (qual->flags.q.attribute && state->stage != MESA_SHADER_VERTEX) {
      var->type = glsl_type::error_type;
      _mesa_glsl_error(loc, state,
                       "`attribute' variables may not be declared in the "
                       "%s shader",
                       _mesa_shader_stage_to_string(state->stage));
   }

   /* Disallow layout qualifiers which may only appear on layout declarations. */
   if (qual->flags.q.prim_type) {
      _mesa_glsl_error(loc, state,
                       "Primitive type may only be specified on GS input or output "
                       "layout declaration, not on variables.");
   }

   /* Section 6.1.1 (Function Calling Conventions) of the GLSL 1.10 spec says:
    *
    *     "However, the const qualifier cannot be used with out or inout."
    *
    * The same section of the GLSL 4.40 spec further clarifies this saying:
    *
    *     "The const qualifier cannot be used with out or inout, or a
    *     compile-time error results."
    */
   if (is_parameter && qual->flags.q.constant && qual->flags.q.out) {
      _mesa_glsl_error(loc, state,
                       "`const' may not be applied to `out' or `inout' "
                       "function parameters");
   }

   /* If there is no qualifier that changes the mode of the variable, leave
    * the setting alone.
    */
   if (qual->flags.q.in && qual->flags.q.out)
      var->data.mode = ir_var_function_inout;
   else if (qual->flags.q.in)
      var->data.mode = is_parameter ? ir_var_function_in : ir_var_shader_in;
   else if (qual->flags.q.attribute
	    || (qual->flags.q.varying && (state->stage == MESA_SHADER_FRAGMENT)))
      var->data.mode = ir_var_shader_in;
   else if (qual->flags.q.out)
      var->data.mode = is_parameter ? ir_var_function_out : ir_var_shader_out;
   else if (qual->flags.q.varying && (state->stage == MESA_SHADER_VERTEX))
      var->data.mode = ir_var_shader_out;
   else if (qual->flags.q.uniform)
      var->data.mode = ir_var_uniform;

   if (!is_parameter && is_varying_var(var, state->stage)) {
      /* User-defined ins/outs are not permitted in compute shaders. */
      if (state->stage == MESA_SHADER_COMPUTE) {
         _mesa_glsl_error(loc, state,
                          "user-defined input and output variables are not "
                          "permitted in compute shaders");
      }

      /* This variable is being used to link data between shader stages (in
       * pre-glsl-1.30 parlance, it's a "varying").  Check that it has a type
       * that is allowed for such purposes.
       *
       * From page 25 (page 31 of the PDF) of the GLSL 1.10 spec:
       *
       *     "The varying qualifier can be used only with the data types
       *     float, vec2, vec3, vec4, mat2, mat3, and mat4, or arrays of
       *     these."
       *
       * This was relaxed in GLSL version 1.30 and GLSL ES version 3.00.  From
       * page 31 (page 37 of the PDF) of the GLSL 1.30 spec:
       *
       *     "Fragment inputs can only be signed and unsigned integers and
       *     integer vectors, float, floating-point vectors, matrices, or
       *     arrays of these. Structures cannot be input.
       *
       * Similar text exists in the section on vertex shader outputs.
       *
       * Similar text exists in the GLSL ES 3.00 spec, except that the GLSL ES
       * 3.00 spec allows structs as well.  Varying structs are also allowed
       * in GLSL 1.50.
       */
      switch (var->type->get_scalar_type()->base_type) {
      case GLSL_TYPE_FLOAT:
         /* Ok in all GLSL versions */
         break;
      case GLSL_TYPE_UINT:
      case GLSL_TYPE_INT:
         if (state->is_version(130, 300))
            break;
         _mesa_glsl_error(loc, state,
                          "varying variables must be of base type float in %s",
                          state->get_version_string());
         break;
      case GLSL_TYPE_STRUCT:
         if (state->is_version(150, 300))
            break;
         _mesa_glsl_error(loc, state,
                          "varying variables may not be of type struct");
         break;
      default:
         _mesa_glsl_error(loc, state, "illegal type for a varying variable");
         break;
      }
   }

   if (state->all_invariant && (state->current_function == NULL)) {
      switch (state->stage) {
      case MESA_SHADER_VERTEX:
         if (var->data.mode == ir_var_shader_out)
            var->data.invariant = true;
	      break;
      case MESA_SHADER_GEOMETRY:
         if ((var->data.mode == ir_var_shader_in)
             || (var->data.mode == ir_var_shader_out))
            var->data.invariant = true;
         break;
      case MESA_SHADER_FRAGMENT:
         if (var->data.mode == ir_var_shader_in)
            var->data.invariant = true;
         break;
      case MESA_SHADER_COMPUTE:
         /* Invariance isn't meaningful in compute shaders. */
         break;
      }
   }

   var->data.interpolation =
      interpret_interpolation_qualifier(qual, (ir_variable_mode) var->data.mode,
                                        state, loc);

   var->data.pixel_center_integer = qual->flags.q.pixel_center_integer;
   var->data.origin_upper_left = qual->flags.q.origin_upper_left;
   if ((qual->flags.q.origin_upper_left || qual->flags.q.pixel_center_integer)
       && (strcmp(var->name, "gl_FragCoord") != 0)) {
      const char *const qual_string = (qual->flags.q.origin_upper_left)
         ? "origin_upper_left" : "pixel_center_integer";

      _mesa_glsl_error(loc, state,
		       "layout qualifier `%s' can only be applied to "
		       "fragment shader input `gl_FragCoord'",
		       qual_string);
   }

   if (var->name != NULL && strcmp(var->name, "gl_FragCoord") == 0) {

      /* Section 4.3.8.1, page 39 of GLSL 1.50 spec says:
       *
       *    "Within any shader, the first redeclarations of gl_FragCoord
       *     must appear before any use of gl_FragCoord."
       *
       * Generate a compiler error if above condition is not met by the
       * fragment shader.
       */
      ir_variable *earlier = state->symbols->get_variable("gl_FragCoord");
      if (earlier != NULL &&
          earlier->data.used &&
          !state->fs_redeclares_gl_fragcoord) {
         _mesa_glsl_error(loc, state,
                          "gl_FragCoord used before its first redeclaration "
                          "in fragment shader");
a2018 39

      /* Make sure all gl_FragCoord redeclarations specify the same layout
       * qualifiers.
       */
      if (is_conflicting_fragcoord_redeclaration(state, qual)) {
         const char *const qual_string =
            get_layout_qualifier_string(qual->flags.q.origin_upper_left,
                                        qual->flags.q.pixel_center_integer);

         const char *const state_string =
            get_layout_qualifier_string(state->fs_origin_upper_left,
                                        state->fs_pixel_center_integer);

         _mesa_glsl_error(loc, state,
                          "gl_FragCoord redeclared with different layout "
                          "qualifiers (%s) and (%s) ",
                          state_string,
                          qual_string);
      }
      state->fs_origin_upper_left = qual->flags.q.origin_upper_left;
      state->fs_pixel_center_integer = qual->flags.q.pixel_center_integer;
      state->fs_redeclares_gl_fragcoord_with_no_layout_qualifiers =
         !qual->flags.q.origin_upper_left && !qual->flags.q.pixel_center_integer;
      state->fs_redeclares_gl_fragcoord =
         state->fs_origin_upper_left ||
         state->fs_pixel_center_integer ||
         state->fs_redeclares_gl_fragcoord_with_no_layout_qualifiers;
   }

   if (qual->flags.q.explicit_location) {
      validate_explicit_location(qual, var, state, loc);
   } else if (qual->flags.q.explicit_index) {
      _mesa_glsl_error(loc, state, "explicit index requires explicit location");
   }

   if (qual->flags.q.explicit_binding &&
       validate_binding_qualifier(state, loc, var, qual)) {
      var->data.explicit_binding = true;
      var->data.binding = qual->binding;
d2021 5
a2025 23
   if (var->type->contains_atomic()) {
      if (var->data.mode == ir_var_uniform) {
         if (var->data.explicit_binding) {
            unsigned *offset =
               &state->atomic_counter_offsets[var->data.binding];

            if (*offset % ATOMIC_COUNTER_SIZE)
               _mesa_glsl_error(loc, state,
                                "misaligned atomic counter offset");

            var->data.atomic.offset = *offset;
            *offset += var->type->atomic_size();

         } else {
            _mesa_glsl_error(loc, state,
                             "atomic counters require explicit binding point");
         }
      } else if (var->data.mode != ir_var_function_in) {
         _mesa_glsl_error(loc, state, "atomic counters may only be declared as "
                          "function parameters or uniform-qualified "
                          "global variables");
      }
   }
a2032 30

   /* Validate auxiliary storage qualifiers */

   /* From section 4.3.4 of the GLSL 1.30 spec:
    *    "It is an error to use centroid in in a vertex shader."
    *
    * From section 4.3.4 of the GLSL ES 3.00 spec:
    *    "It is an error to use centroid in or interpolation qualifiers in
    *    a vertex shader input."
    */

   /* Section 4.3.6 of the GLSL 1.30 specification states:
    * "It is an error to use centroid out in a fragment shader."
    *
    * The GL_ARB_shading_language_420pack extension specification states:
    * "It is an error to use auxiliary storage qualifiers or interpolation
    *  qualifiers on an output in a fragment shader."
    */
   if (qual->flags.q.sample && (!is_varying_var(var, state->stage) || uses_deprecated_qualifier)) {
      _mesa_glsl_error(loc, state,
                       "sample qualifier may only be used on `in` or `out` "
                       "variables between shader stages");
   }
   if (qual->flags.q.centroid && !is_varying_var(var, state->stage)) {
      _mesa_glsl_error(loc, state,
                       "centroid qualifier may only be used with `in', "
                       "`out' or `varying' variables between shader stages");
   }


a2042 1
    *    GL_ARB_conservative_depth
d2055 1
a2055 1
   if (qual->has_layout() && uses_deprecated_qualifier) {
d2057 7
a2063 7
         _mesa_glsl_warning(loc, state,
                            "`layout' qualifier may not be used with "
                            "`attribute' or `varying'");
      } else {
         _mesa_glsl_error(loc, state,
                          "`layout' qualifier may not be used with "
                          "`attribute' or `varying'");
d2075 1
a2075 2
       && !state->AMD_conservative_depth_enable
       && !state->ARB_conservative_depth_enable) {
d2077 2
a2078 3
                        "extension GL_AMD_conservative_depth or "
                        "GL_ARB_conservative_depth must be enabled "
                        "to use depth layout qualifiers");
d2091 1
a2091 1
      var->data.depth_layout = ir_depth_layout_any;
d2093 1
a2093 1
      var->data.depth_layout = ir_depth_layout_greater;
d2095 1
a2095 1
      var->data.depth_layout = ir_depth_layout_less;
d2097 1
a2097 1
       var->data.depth_layout = ir_depth_layout_unchanged;
d2099 1
a2099 17
       var->data.depth_layout = ir_depth_layout_none;

   if (qual->flags.q.std140 ||
       qual->flags.q.packed ||
       qual->flags.q.shared) {
      _mesa_glsl_error(loc, state,
                       "uniform block layout qualifiers std140, packed, and "
                       "shared can only be applied to uniform blocks, not "
                       "members");
   }

   if (qual->flags.q.row_major || qual->flags.q.column_major) {
      validate_matrix_layout_for_type(state, loc, var->type, var);
   }

   if (var->type->contains_image())
      apply_image_qualifier_to_variable(qual, var, state, loc);
d2113 3
a2115 4
static ir_variable *
get_variable_being_redeclared(ir_variable *var, YYLTYPE loc,
                              struct _mesa_glsl_parse_state *state,
                              bool allow_all_redeclarations)
d2123 1
a2123 1
   ir_variable *earlier = state->symbols->get_variable(var->name);
d2126 1
a2126 1
       !state->symbols->name_declared_this_scope(var->name))) {
d2131 2
d2139 2
a2140 1
   if (earlier->type->is_unsized_array() && var->type->is_array()
d2149 4
a2152 4
      if ((size > 0) && (size <= earlier->data.max_array_access)) {
         _mesa_glsl_error(& loc, state, "array size must be > %u due to "
                          "previous access",
                          earlier->data.max_array_access);
d2158 4
a2161 5
   } else if ((state->ARB_fragment_coord_conventions_enable ||
              state->is_version(150, 0))
              && strcmp(var->name, "gl_FragCoord") == 0
              && earlier->type == var->type
              && earlier->data.mode == var->data.mode) {
d2165 2
a2166 2
      earlier->data.origin_upper_left = var->data.origin_upper_left;
      earlier->data.pixel_center_integer = var->data.pixel_center_integer;
d2178 10
a2187 10
   } else if (state->is_version(130, 0)
              && (strcmp(var->name, "gl_FrontColor") == 0
                  || strcmp(var->name, "gl_BackColor") == 0
                  || strcmp(var->name, "gl_FrontSecondaryColor") == 0
                  || strcmp(var->name, "gl_BackSecondaryColor") == 0
                  || strcmp(var->name, "gl_Color") == 0
                  || strcmp(var->name, "gl_SecondaryColor") == 0)
              && earlier->type == var->type
              && earlier->data.mode == var->data.mode) {
      earlier->data.interpolation = var->data.interpolation;
d2190 4
a2193 5
   } else if ((state->AMD_conservative_depth_enable ||
               state->ARB_conservative_depth_enable)
              && strcmp(var->name, "gl_FragDepth") == 0
              && earlier->type == var->type
              && earlier->data.mode == var->data.mode) {
d2199 4
a2202 4
      if (earlier->data.used) {
         _mesa_glsl_error(&loc, state,
                          "the first redeclaration of gl_FragDepth "
                          "must appear before any use of gl_FragDepth");
d2206 8
a2213 8
      if (earlier->data.depth_layout != ir_depth_layout_none
          && earlier->data.depth_layout != var->data.depth_layout) {
            _mesa_glsl_error(&loc, state,
                             "gl_FragDepth: depth layout is declared here "
                             "as '%s, but it was previously declared as "
                             "'%s'",
                             depth_layout_string(var->data.depth_layout),
                             depth_layout_string(earlier->data.depth_layout));
d2216 1
a2216 1
      earlier->data.depth_layout = var->data.depth_layout;
a2217 10
   } else if (allow_all_redeclarations) {
      if (earlier->data.mode != var->data.mode) {
         _mesa_glsl_error(&loc, state,
                          "redeclaration of `%s' with incorrect qualifiers",
                          var->name);
      } else if (earlier->type != var->type) {
         _mesa_glsl_error(&loc, state,
                          "redeclaration of `%s' has incorrect type",
                          var->name);
      }
d2219 1
a2219 1
      _mesa_glsl_error(&loc, state, "`%s' redeclared", var->name);
d2244 4
a2247 3
   if (var->data.mode == ir_var_uniform) {
      state->check_version(120, 0, &initializer_loc,
                           "cannot initialize uniforms");
d2250 1
a2250 7
   /* From section 4.1.7 of the GLSL 4.40 spec:
    *
    *    "Opaque variables [...] are initialized only through the
    *     OpenGL API; they cannot be declared with an initializer in a
    *     shader."
    */
   if (var->type->contains_opaque()) {
d2252 1
a2252 1
                       "cannot initialize opaque variable");
d2255 1
a2255 1
   if ((var->data.mode == ir_var_shader_in) && (state->current_function == NULL)) {
d2258 2
a2259 2
		       _mesa_shader_stage_to_string(state->stage),
		       (state->stage == MESA_SHADER_VERTEX)
a2262 7
   /* If the initializer is an ast_aggregate_initializer, recursively store
    * type information from the LHS into it, so that its hir() function can do
    * type checking.
    */
   if (decl->initializer->oper == ast_aggregate)
      _mesa_ast_set_aggregate_type(var->type, decl->initializer);

d2264 2
a2265 1
   ir_rvalue *rhs = decl->initializer->hir(initializer_instructions, state);
d2272 1
a2272 2
      ir_rvalue *new_rhs = validate_assignment(state, initializer_loc,
                                               var->type, rhs, true);
d2274 1
a2274 1
         rhs = new_rhs;
d2276 25
a2300 29
         ir_constant *constant_value = rhs->constant_expression_value();
         if (!constant_value) {
            /* If ARB_shading_language_420pack is enabled, initializers of
             * const-qualified local variables do not have to be constant
             * expressions. Const-qualified global variables must still be
             * initialized with constant expressions.
             */
            if (!state->ARB_shading_language_420pack_enable
                || state->current_function == NULL) {
               _mesa_glsl_error(& initializer_loc, state,
                                "initializer of %s variable `%s' must be a "
                                "constant expression",
                                (type->qualifier.flags.q.constant)
                                ? "const" : "uniform",
                                decl->identifier);
               if (var->type->is_numeric()) {
                  /* Reduce cascading errors. */
                  var->constant_value = ir_constant::zero(state, var->type);
               }
            }
         } else {
            rhs = constant_value;
            var->constant_value = constant_value;
         }
      } else {
         if (var->type->is_numeric()) {
            /* Reduce cascading errors. */
            var->constant_value = ir_constant::zero(state, var->type);
         }
d2305 1
a2305 1
      bool temp = var->data.read_only;
d2307 1
a2307 1
         var->data.read_only = false;
d2313 4
a2316 7
         do_assignment(initializer_instructions, state,
                       NULL,
                       lhs, rhs,
                       &result, true,
                       true,
                       type->get_location());
         initializer_type = result->type;
d2318 1
a2318 4
         initializer_type = rhs->type;

      var->constant_initializer = rhs->constant_expression_value();
      var->data.has_initializer = true;
d2342 1
a2342 1
      var->data.read_only = temp;
a2347 112

/**
 * Do additional processing necessary for geometry shader input declarations
 * (this covers both interface blocks arrays and bare input variables).
 */
static void
handle_geometry_shader_input_decl(struct _mesa_glsl_parse_state *state,
                                  YYLTYPE loc, ir_variable *var)
{
   unsigned num_vertices = 0;
   if (state->gs_input_prim_type_specified) {
      num_vertices = vertices_per_prim(state->in_qualifier->prim_type);
   }

   /* Geometry shader input variables must be arrays.  Caller should have
    * reported an error for this.
    */
   if (!var->type->is_array()) {
      assert(state->error);

      /* To avoid cascading failures, short circuit the checks below. */
      return;
   }

   if (var->type->is_unsized_array()) {
      /* Section 4.3.8.1 (Input Layout Qualifiers) of the GLSL 1.50 spec says:
       *
       *   All geometry shader input unsized array declarations will be
       *   sized by an earlier input layout qualifier, when present, as per
       *   the following table.
       *
       * Followed by a table mapping each allowed input layout qualifier to
       * the corresponding input length.
       */
      if (num_vertices != 0)
         var->type = glsl_type::get_array_instance(var->type->fields.array,
                                                   num_vertices);
   } else {
      /* Section 4.3.8.1 (Input Layout Qualifiers) of the GLSL 1.50 spec
       * includes the following examples of compile-time errors:
       *
       *   // code sequence within one shader...
       *   in vec4 Color1[];    // size unknown
       *   ...Color1.length()...// illegal, length() unknown
       *   in vec4 Color2[2];   // size is 2
       *   ...Color1.length()...// illegal, Color1 still has no size
       *   in vec4 Color3[3];   // illegal, input sizes are inconsistent
       *   layout(lines) in;    // legal, input size is 2, matching
       *   in vec4 Color4[3];   // illegal, contradicts layout
       *   ...
       *
       * To detect the case illustrated by Color3, we verify that the size of
       * an explicitly-sized array matches the size of any previously declared
       * explicitly-sized array.  To detect the case illustrated by Color4, we
       * verify that the size of an explicitly-sized array is consistent with
       * any previously declared input layout.
       */
      if (num_vertices != 0 && var->type->length != num_vertices) {
         _mesa_glsl_error(&loc, state,
                          "geometry shader input size contradicts previously"
                          " declared layout (size is %u, but layout requires a"
                          " size of %u)", var->type->length, num_vertices);
      } else if (state->gs_input_size != 0 &&
                 var->type->length != state->gs_input_size) {
         _mesa_glsl_error(&loc, state,
                          "geometry shader input sizes are "
                          "inconsistent (size is %u, but a previous "
                          "declaration has size %u)",
                          var->type->length, state->gs_input_size);
      } else {
         state->gs_input_size = var->type->length;
      }
   }
}


void
validate_identifier(const char *identifier, YYLTYPE loc,
                    struct _mesa_glsl_parse_state *state)
{
   /* From page 15 (page 21 of the PDF) of the GLSL 1.10 spec,
    *
    *   "Identifiers starting with "gl_" are reserved for use by
    *   OpenGL, and may not be declared in a shader as either a
    *   variable or a function."
    */
   if (is_gl_identifier(identifier)) {
      _mesa_glsl_error(&loc, state,
                       "identifier `%s' uses reserved `gl_' prefix",
                       identifier);
   } else if (strstr(identifier, "__")) {
      /* From page 14 (page 20 of the PDF) of the GLSL 1.10
       * spec:
       *
       *     "In addition, all identifiers containing two
       *      consecutive underscores (__) are reserved as
       *      possible future keywords."
       *
       * The intention is that names containing __ are reserved for internal
       * use by the implementation, and names prefixed with GL_ are reserved
       * for use by Khronos.  Names simply containing __ are dangerous to use,
       * but should be allowed.
       *
       * A future version of the GLSL specification will clarify this.
       */
      _mesa_glsl_warning(&loc, state,
                         "identifier `%s' uses reserved `__' string",
                         identifier);
   }
}


d2350 1
a2350 1
                         struct _mesa_glsl_parse_state *state)
d2373 3
a2375 3
         _mesa_glsl_error(& loc, state,
                          "all uses of `invariant' keyword must be at global "
                          "scope");
d2379 29
a2407 22
         assert(decl->array_specifier == NULL);
         assert(decl->initializer == NULL);

         ir_variable *const earlier =
            state->symbols->get_variable(decl->identifier);
         if (earlier == NULL) {
            _mesa_glsl_error(& loc, state,
                             "undeclared variable `%s' cannot be marked "
                             "invariant", decl->identifier);
         } else if (!is_varying_var(earlier, state->stage)) {
            _mesa_glsl_error(&loc, state,
                             "`%s' cannot be marked invariant; interfaces between "
                             "shader stages only.", decl->identifier);
         } else if (earlier->data.used) {
            _mesa_glsl_error(& loc, state,
                            "variable `%s' may not be redeclared "
                            "`invariant' after being used",
                            earlier->name);
         } else {
            earlier->data.invariant = true;
         }
      }
a2413 36
   if (this->precise) {
      assert(this->type == NULL);

      foreach_list_typed (ast_declaration, decl, link, &this->declarations) {
         assert(decl->array_specifier == NULL);
         assert(decl->initializer == NULL);

         ir_variable *const earlier =
            state->symbols->get_variable(decl->identifier);
         if (earlier == NULL) {
            _mesa_glsl_error(& loc, state,
                             "undeclared variable `%s' cannot be marked "
                             "precise", decl->identifier);
         } else if (state->current_function != NULL &&
                    !state->symbols->name_declared_this_scope(decl->identifier)) {
            /* Note: we have to check if we're in a function, since
             * builtins are treated as having come from another scope.
             */
            _mesa_glsl_error(& loc, state,
                             "variable `%s' from an outer scope may not be "
                             "redeclared `precise' in this scope",
                             earlier->name);
         } else if (earlier->data.used) {
            _mesa_glsl_error(& loc, state,
                             "variable `%s' may not be redeclared "
                             "`precise' after being used",
                             earlier->name);
         } else {
            earlier->data.precise = true;
         }
      }

      /* Precise redeclarations do not have r-values either. */
      return NULL;
   }

a2415 1
   assert(!this->precise);
d2422 1
a2422 13
   decl_type = this->type->glsl_type(& type_name, state);

   /* An offset-qualified atomic counter declaration sets the default
    * offset for the next declaration within the same atomic counter
    * buffer.
    */
   if (decl_type && decl_type->contains_atomic()) {
      if (type->qualifier.flags.q.explicit_binding &&
          type->qualifier.flags.q.explicit_offset)
         state->atomic_counter_offsets[type->qualifier.binding] =
            type->qualifier.offset;
   }

d2424 8
a2431 55
      /* If there is no structure involved in the program text, there are two
       * possible scenarios:
       *
       * - The program text contained something like 'vec4;'.  This is an
       *   empty declaration.  It is valid but weird.  Emit a warning.
       *
       * - The program text contained something like 'S;' and 'S' is not the
       *   name of a known structure type.  This is both invalid and weird.
       *   Emit an error.
       *
       * - The program text contained something like 'mediump float;'
       *   when the programmer probably meant 'precision mediump
       *   float;' Emit a warning with a description of what they
       *   probably meant to do.
       *
       * Note that if decl_type is NULL and there is a structure involved,
       * there must have been some sort of error with the structure.  In this
       * case we assume that an error was already generated on this line of
       * code for the structure.  There is no need to generate an additional,
       * confusing error.
       */
      assert(this->type->specifier->structure == NULL || decl_type != NULL
	     || state->error);

      if (decl_type == NULL) {
         _mesa_glsl_error(&loc, state,
                          "invalid type `%s' in empty declaration",
                          type_name);
      } else if (decl_type->base_type == GLSL_TYPE_ATOMIC_UINT) {
         /* Empty atomic counter declarations are allowed and useful
          * to set the default offset qualifier.
          */
         return NULL;
      } else if (this->type->qualifier.precision != ast_precision_none) {
         if (this->type->specifier->structure != NULL) {
            _mesa_glsl_error(&loc, state,
                             "precision qualifiers can't be applied "
                             "to structures");
         } else {
            static const char *const precision_names[] = {
               "highp",
               "highp",
               "mediump",
               "lowp"
            };

            _mesa_glsl_warning(&loc, state,
                               "empty declaration with precision qualifier, "
                               "to set the default precision, use "
                               "`precision %s %s;'",
                               precision_names[this->type->qualifier.precision],
                               type_name);
         }
      } else if (this->type->specifier->structure == NULL) {
         _mesa_glsl_warning(&loc, state, "empty declaration");
d2444 17
a2460 10
         if (type_name != NULL) {
            _mesa_glsl_error(& loc, state,
                             "invalid type `%s' in declaration of `%s'",
                             type_name, decl->identifier);
         } else {
            _mesa_glsl_error(& loc, state,
                             "invalid type in declaration of `%s'",
                             decl->identifier);
         }
         continue;
a2462 3
      var_type = process_array_type(&loc, decl_type, decl->array_specifier,
                                    state);

a2464 20
      /* The 'varying in' and 'varying out' qualifiers can only be used with
       * ARB_geometry_shader4 and EXT_geometry_shader4, which we don't support
       * yet.
       */
      if (this->type->qualifier.flags.q.varying) {
         if (this->type->qualifier.flags.q.in) {
            _mesa_glsl_error(& loc, state,
                             "`varying in' qualifier in declaration of "
                             "`%s' only valid for geometry shaders using "
                             "ARB_geometry_shader4 or EXT_geometry_shader4",
                             decl->identifier);
         } else if (this->type->qualifier.flags.q.out) {
            _mesa_glsl_error(& loc, state,
                             "`varying out' qualifier in declaration of "
                             "`%s' only valid for geometry shaders using "
                             "ARB_geometry_shader4 or EXT_geometry_shader4",
                             decl->identifier);
         }
      }

d2468 1
a2468 1
       *     attribute, uniform, or varying. Only one may be
d2473 2
a2474 2
       * This is relaxed in GLSL 1.30 and GLSL ES 3.00.  It is also relaxed by
       * any extension that adds the 'layout' keyword.
d2476 16
a2491 17
      if (!state->is_version(130, 300)
          && !state->has_explicit_attrib_location()
          && !state->has_separate_shader_objects()
          && !state->ARB_fragment_coord_conventions_enable) {
         if (this->type->qualifier.flags.q.out) {
            _mesa_glsl_error(& loc, state,
                             "`out' qualifier in declaration of `%s' "
                             "only valid for function parameters in %s",
                             decl->identifier, state->get_version_string());
         }
         if (this->type->qualifier.flags.q.in) {
            _mesa_glsl_error(& loc, state,
                             "`in' qualifier in declaration of `%s' "
                             "only valid for function parameters in %s",
                             decl->identifier, state->get_version_string());
         }
         /* FINISHME: Test for other invalid qualifiers. */
d2495 1
a2495 1
				       & loc, false);
d2498 17
a2514 5
         if (!is_varying_var(var, state->stage)) {
            _mesa_glsl_error(&loc, state,
                             "`%s' cannot be marked invariant; interfaces between "
                             "shader stages only", var->name);
         }
d2518 2
a2519 2
         const char *mode = NULL;
         const char *extra = "";
d2521 91
a2611 99
         /* There is no need to check for 'inout' here because the parser will
          * only allow that in function parameter lists.
          */
         if (this->type->qualifier.flags.q.attribute) {
            mode = "attribute";
         } else if (this->type->qualifier.flags.q.uniform) {
            mode = "uniform";
         } else if (this->type->qualifier.flags.q.varying) {
            mode = "varying";
         } else if (this->type->qualifier.flags.q.in) {
            mode = "in";
            extra = " or in function parameter list";
         } else if (this->type->qualifier.flags.q.out) {
            mode = "out";
            extra = " or in function parameter list";
         }

         if (mode) {
            _mesa_glsl_error(& loc, state,
                             "%s variable `%s' must be declared at "
                             "global scope%s",
                             mode, var->name, extra);
         }
      } else if (var->data.mode == ir_var_shader_in) {
         var->data.read_only = true;

         if (state->stage == MESA_SHADER_VERTEX) {
            bool error_emitted = false;

            /* From page 31 (page 37 of the PDF) of the GLSL 1.50 spec:
             *
             *    "Vertex shader inputs can only be float, floating-point
             *    vectors, matrices, signed and unsigned integers and integer
             *    vectors. Vertex shader inputs can also form arrays of these
             *    types, but not structures."
             *
             * From page 31 (page 27 of the PDF) of the GLSL 1.30 spec:
             *
             *    "Vertex shader inputs can only be float, floating-point
             *    vectors, matrices, signed and unsigned integers and integer
             *    vectors. They cannot be arrays or structures."
             *
             * From page 23 (page 29 of the PDF) of the GLSL 1.20 spec:
             *
             *    "The attribute qualifier can be used only with float,
             *    floating-point vectors, and matrices. Attribute variables
             *    cannot be declared as arrays or structures."
             *
             * From page 33 (page 39 of the PDF) of the GLSL ES 3.00 spec:
             *
             *    "Vertex shader inputs can only be float, floating-point
             *    vectors, matrices, signed and unsigned integers and integer
             *    vectors. Vertex shader inputs cannot be arrays or
             *    structures."
             */
            const glsl_type *check_type = var->type;
            while (check_type->is_array())
               check_type = check_type->element_type();

            switch (check_type->base_type) {
            case GLSL_TYPE_FLOAT:
            break;
            case GLSL_TYPE_UINT:
            case GLSL_TYPE_INT:
               if (state->is_version(120, 300))
                  break;
            /* FALLTHROUGH */
            default:
               _mesa_glsl_error(& loc, state,
                                "vertex shader input / attribute cannot have "
                                "type %s`%s'",
                                var->type->is_array() ? "array of " : "",
                                check_type->name);
               error_emitted = true;
            }

            if (!error_emitted && var->type->is_array() &&
                !state->check_version(150, 0, &loc,
                                      "vertex shader input / attribute "
                                      "cannot have array type")) {
               error_emitted = true;
            }
         } else if (state->stage == MESA_SHADER_GEOMETRY) {
            /* From section 4.3.4 (Inputs) of the GLSL 1.50 spec:
             *
             *     Geometry shader input variables get the per-vertex values
             *     written out by vertex shader output variables of the same
             *     names. Since a geometry shader operates on a set of
             *     vertices, each input varying variable (or input block, see
             *     interface blocks below) needs to be declared as an array.
             */
            if (!var->type->is_array()) {
               _mesa_glsl_error(&loc, state,
                                "geometry shader inputs must be arrays");
            }

            handle_geometry_shader_input_decl(state, loc, var);
         }
      }
d2613 2
a2614 40
      /* Integer fragment inputs must be qualified with 'flat'.  In GLSL ES,
       * so must integer vertex outputs.
       *
       * From section 4.3.4 ("Inputs") of the GLSL 1.50 spec:
       *    "Fragment shader inputs that are signed or unsigned integers or
       *    integer vectors must be qualified with the interpolation qualifier
       *    flat."
       *
       * From section 4.3.4 ("Input Variables") of the GLSL 3.00 ES spec:
       *    "Fragment shader inputs that are, or contain, signed or unsigned
       *    integers or integer vectors must be qualified with the
       *    interpolation qualifier flat."
       *
       * From section 4.3.6 ("Output Variables") of the GLSL 3.00 ES spec:
       *    "Vertex shader outputs that are, or contain, signed or unsigned
       *    integers or integer vectors must be qualified with the
       *    interpolation qualifier flat."
       *
       * Note that prior to GLSL 1.50, this requirement applied to vertex
       * outputs rather than fragment inputs.  That creates problems in the
       * presence of geometry shaders, so we adopt the GLSL 1.50 rule for all
       * desktop GL shaders.  For GLSL ES shaders, we follow the spec and
       * apply the restriction to both vertex outputs and fragment inputs.
       *
       * Note also that the desktop GLSL specs are missing the text "or
       * contain"; this is presumably an oversight, since there is no
       * reasonable way to interpolate a fragment shader input that contains
       * an integer.
       */
      if (state->is_version(130, 300) &&
          var->type->contains_integer() &&
          var->data.interpolation != INTERP_QUALIFIER_FLAT &&
          ((state->stage == MESA_SHADER_FRAGMENT && var->data.mode == ir_var_shader_in)
           || (state->stage == MESA_SHADER_VERTEX && var->data.mode == ir_var_shader_out
               && state->es_shader))) {
         const char *var_type = (state->stage == MESA_SHADER_VERTEX) ?
            "vertex output" : "fragment input";
         _mesa_glsl_error(&loc, state, "if a %s is (or contains) "
                          "an integer, then it must be qualified with 'flat'",
                          var_type);
a2624 2
       *
       * These deprecated storage qualifiers do not exist in GLSL ES 3.00.
d2626 1
a2626 1
      if (state->is_version(130, 0)
a2650 6
       *
       * From page 31 (page 37 of the PDF) of the GLSL ES 3.00 spec:
       *    "These interpolation qualifiers may only precede the qualifiers
       *    in, centroid in, out, or centroid out in a declaration. They do
       *    not apply to inputs into a vertex shader or outputs from a
       *    fragment shader."
d2652 1
a2652 1
      if (state->is_version(130, 300)
d2658 2
a2659 2
         switch (state->stage) {
         case MESA_SHADER_VERTEX:
d2666 1
a2666 1
         case MESA_SHADER_FRAGMENT:
d2674 1
a2674 1
            break;
d2679 13
d2694 7
a2700 2
      if (this->type->qualifier.precision != ast_precision_none) {
         state->check_precision_qualifiers_allowed(&loc);
d2704 1
a2704 2
      /* Precision qualifiers apply to floating point, integer and sampler
       * types.
d2706 1
a2706 1
       * Section 4.5.2 (Precision Qualifiers) of the GLSL 1.30 spec says:
d2712 1
a2712 14
       * Section 4.5 (Precision and Precision Qualifiers) of the GLSL 1.30
       * spec also says:
       *
       *     "Precision qualifiers are added for code portability with OpenGL
       *     ES, not for functionality. They have the same syntax as in OpenGL
       *     ES."
       *
       * Section 8 (Built-In Functions) of the GLSL ES 1.00 spec says:
       *
       *     "uniform lowp sampler2D sampler;
       *     highp vec2 coord;
       *     ...
       *     lowp vec4 col = texture2D (sampler, coord);
       *                                            // texture2D returns lowp"
d2714 2
a2715 2
       * From this, we infer that GLSL 1.30 (and later) should allow precision
       * qualifiers on sampler types just like float and integer types.
d2717 1
a2717 1
      if (this->type->qualifier.precision != ast_precision_none
d2720 1
a2720 2
          && !var->type->is_record()
          && !var->type->is_sampler()
d2727 2
a2728 1
                          ", integer and sampler types");
d2731 1
a2731 1
      /* From section 4.1.7 of the GLSL 4.40 spec:
d2733 3
a2735 2
       *    "[Opaque types] can only be declared as function
       *     parameters or uniform-qualified variables."
d2737 1
a2737 1
      if (var_type->contains_opaque() &&
d2739 1
a2739 2
         _mesa_glsl_error(&loc, state,
                          "opaque variables must be declared uniform");
d2749 1
a2749 16

      /* Examine var name here since var may get deleted in the next call */
      bool var_is_gl_id = is_gl_identifier(var->name);

      ir_variable *earlier =
         get_variable_being_redeclared(var, decl->get_location(), state,
                                       false /* allow_all_redeclarations */);
      if (earlier != NULL) {
         if (var_is_gl_id &&
             earlier->data.how_declared == ir_var_declared_in_block) {
            _mesa_glsl_error(&loc, state,
                             "`%s' has already been redeclared using "
                             "gl_PerVertex", earlier->name);
         }
         earlier->data.how_declared = ir_var_declared_normally;
      }
d2752 3
a2754 3
         result = process_initializer((earlier == NULL) ? var : earlier,
                                      decl, this->type,
                                      &initializer_instructions, state);
d2764 3
a2766 30
         _mesa_glsl_error(& loc, state,
                          "const declaration of `%s' must be initialized",
                          decl->identifier);
      }

      if (state->es_shader) {
         const glsl_type *const t = (earlier == NULL)
            ? var->type : earlier->type;

         if (t->is_unsized_array())
            /* Section 10.17 of the GLSL ES 1.00 specification states that
             * unsized array declarations have been removed from the language.
             * Arrays that are sized using an initializer are still explicitly
             * sized.  However, GLSL ES 1.00 does not allow array
             * initializers.  That is only allowed in GLSL ES 3.00.
             *
             * Section 4.1.9 (Arrays) of the GLSL ES 3.00 spec says:
             *
             *     "An array type can also be formed without specifying a size
             *     if the definition includes an initializer:
             *
             *         float x[] = float[2] (1.0, 2.0);     // declares an array of size 2
             *         float y[] = float[] (1.0, 2.0, 3.0); // declares an array of size 3
             *
             *         float a[5];
             *         float b[] = a;"
             */
            _mesa_glsl_error(& loc, state,
                             "unsized array declarations are not allowed in "
                             "GLSL ES");
d2774 37
a2810 28
         validate_identifier(decl->identifier, loc, state);

         /* Add the variable to the symbol table.  Note that the initializer's
          * IR was already processed earlier (though it hasn't been emitted
          * yet), without the variable in scope.
          *
          * This differs from most C-like languages, but it follows the GLSL
          * specification.  From page 28 (page 34 of the PDF) of the GLSL 1.50
          * spec:
          *
          *     "Within a declaration, the scope of a name starts immediately
          *     after the initializer if present or immediately after the name
          *     being declared if not."
          */
         if (!state->symbols->add_variable(var)) {
            YYLTYPE loc = this->get_location();
            _mesa_glsl_error(&loc, state, "name `%s' already taken in the "
                             "current scope", decl->identifier);
            continue;
         }

         /* Push the variable declaration to the top.  It means that all the
          * variable declarations will appear in a funny last-to-first order,
          * but otherwise we run into trouble if a function is prototyped, a
          * global var is decled, then the function is defined with usage of
          * the global var.  See glslparsertest's CorrectModule.frag.
          */
         instructions->push_head(var);
d2832 1
a2832 1
                              struct _mesa_glsl_parse_state *state)
d2839 1
a2839 1
   type = this->type->glsl_type(& name, state);
d2843 7
a2849 7
         _mesa_glsl_error(& loc, state,
                          "invalid type `%s' in declaration of `%s'",
                          name, this->identifier);
      } else {
         _mesa_glsl_error(& loc, state,
                          "invalid type in declaration of `%s'",
                          this->identifier);
d2869 2
a2870 2
         _mesa_glsl_error(& loc, state,
                          "named parameter cannot have type `void'");
d2884 3
a2886 1
   type = process_array_type(&loc, type, this->array_specifier, state);
d2888 1
a2888 1
   if (!type->is_error() && type->is_unsized_array()) {
d2890 1
a2890 1
                       "a declared size");
d2895 1
a2895 2
   ir_variable *var = new(ctx)
      ir_variable(type, this->identifier, ir_var_function_in);
d2900 1
a2900 2
   apply_type_qualifier_to_variable(& this->type->qualifier, var, state, & loc,
                                    true);
d2902 1
a2902 1
   /* From section 4.1.7 of the GLSL 4.40 spec:
d2904 7
a2910 8
    *   "Opaque variables cannot be treated as l-values; hence cannot
    *    be used as out or inout function parameters, nor can they be
    *    assigned into."
    */
   if ((var->data.mode == ir_var_function_inout || var->data.mode == ir_var_function_out)
       && type->contains_opaque()) {
      _mesa_glsl_error(&loc, state, "out and inout parameters cannot "
                       "contain opaque variables");
d2928 3
a2930 4
   if ((var->data.mode == ir_var_function_inout || var->data.mode == ir_var_function_out)
       && type->is_array()
       && !state->check_version(120, 100, &loc,
                                "arrays cannot be out or inout parameters")) {
d2944 3
a2946 3
                                            bool formal,
                                            exec_list *ir_parameters,
                                            _mesa_glsl_parse_state *state)
d2956 1
a2956 1
         void_param = param;
d2965 1
a2965 1
                       "`void' parameter must be only parameter");
d2986 1
a2986 1
                  struct _mesa_glsl_parse_state *state)
a2994 6
   /* New functions are always added to the top-level IR instruction stream,
    * so this instruction list pointer is ignored.  See also emit_function
    * (called below).
    */
   (void) instructions;

d3007 1
a3007 2
   if ((state->current_function != NULL) &&
       state->is_version(120, 100)) {
d3014 11
a3024 1
   validate_identifier(name, this->get_location(), state);
d3031 2
a3032 2
                                               is_definition,
                                               & hir_parameters, state);
d3036 1
a3036 1
      this->return_type->glsl_type(& return_type_name, state);
d3041 2
a3042 2
                       "function `%s' has undeclared return type `%s'",
                       name, return_type_name);
d3052 1
a3052 13
                       "function `%s' return type has qualifiers", name);
   }

   /* Section 6.1 (Function Definitions) of the GLSL 1.20 spec says:
    *
    *     "Arrays are allowed as arguments and as the return type. In both
    *     cases, the array must be explicitly sized."
    */
   if (return_type->is_unsized_array()) {
      YYLTYPE loc = this->get_location();
      _mesa_glsl_error(& loc, state,
                       "function `%s' return type array must be explicitly "
                       "sized", name);
d3055 1
a3055 1
   /* From section 4.1.7 of the GLSL 4.40 spec:
d3057 2
a3058 2
    *    "[Opaque types] can only be declared as function parameters
    *     or uniform-qualified variables."
d3060 1
a3060 1
   if (return_type->contains_opaque()) {
d3063 1
a3063 1
                       "function `%s' return type can't contain an opaque type",
a3066 16
   /* Create an ir_function if one doesn't already exist. */
   f = state->symbols->get_function(name);
   if (f == NULL) {
      f = new(ctx) ir_function(name);
      if (!state->symbols->add_function(f)) {
         /* This function name shadows a non-function use of the same name. */
         YYLTYPE loc = this->get_location();

         _mesa_glsl_error(&loc, state, "function name `%s' conflicts with "
                          "non-function", name);
         return NULL;
      }

      emit_function(state, f);
   }

d3071 3
a3073 2
   if (state->es_shader || f->has_user_signature()) {
      sig = f->exact_matching_signature(state, &hir_parameters);
d3075 14
a3088 3
         const char *badvar = sig->qualifiers_match(&hir_parameters);
         if (badvar != NULL) {
            YYLTYPE loc = this->get_location();
d3090 2
a3091 3
            _mesa_glsl_error(&loc, state, "function `%s' parameter `%s' "
                             "qualifiers don't match prototype", name, badvar);
         }
d3093 8
a3100 2
         if (sig->return_type != return_type) {
            YYLTYPE loc = this->get_location();
d3102 4
a3105 3
            _mesa_glsl_error(&loc, state, "function `%s' return type doesn't "
                             "match prototype", name);
         }
d3107 1
a3107 13
         if (sig->is_defined) {
            if (is_definition) {
               YYLTYPE loc = this->get_location();
               _mesa_glsl_error(& loc, state, "function `%s' redefined", name);
            } else {
               /* We just encountered a prototype that exactly matches a
                * function that's already been defined.  This is redundant,
                * and we should ignore it.
                */
               return NULL;
            }
         }
      }
d3113 1
a3113 1
         YYLTYPE loc = this->get_location();
d3115 1
a3115 1
         _mesa_glsl_error(& loc, state, "main() must return void");
d3119 1
a3119 1
         YYLTYPE loc = this->get_location();
d3121 1
a3121 1
         _mesa_glsl_error(& loc, state, "main() must not take any parameters");
d3143 1
a3143 1
                             struct _mesa_glsl_parse_state *state)
d3160 4
a3163 2
   foreach_in_list(ir_variable, var, &signature->parameters) {
      assert(var->as_variable() != NULL);
d3169 1
a3169 1
         YYLTYPE loc = this->get_location();
d3171 1
a3171 1
         _mesa_glsl_error(& loc, state, "parameter `%s' redeclared", var->name);
d3173 1
a3173 1
         state->symbols->add_variable(var);
d3189 3
a3191 3
                       "%s, but no return statement",
                       signature->function_name(),
                       signature->return_type->name);
d3202 1
a3202 1
                        struct _mesa_glsl_parse_state *state)
d3212 1
a3212 52
         ir_rvalue *ret = opt_return_value->hir(instructions, state);

         /* The value of the return type can be NULL if the shader says
          * 'return foo();' and foo() is a function that returns void.
          *
          * NOTE: The GLSL spec doesn't say that this is an error.  The type
          * of the return value is void.  If the return type of the function is
          * also void, then this should compile without error.  Seriously.
          */
         const glsl_type *const ret_type =
            (ret == NULL) ? glsl_type::void_type : ret->type;

         /* Implicit conversions are not allowed for return values prior to
          * ARB_shading_language_420pack.
          */
         if (state->current_function->return_type != ret_type) {
            YYLTYPE loc = this->get_location();

            if (state->ARB_shading_language_420pack_enable) {
               if (!apply_implicit_conversion(state->current_function->return_type,
                                              ret, state)) {
                  _mesa_glsl_error(& loc, state,
                                   "could not implicitly convert return value "
                                   "to %s, in function `%s'",
                                   state->current_function->return_type->name,
                                   state->current_function->function_name());
               }
            } else {
               _mesa_glsl_error(& loc, state,
                                "`return' with wrong type %s, in function `%s' "
                                "returning %s",
                                ret_type->name,
                                state->current_function->function_name(),
                                state->current_function->return_type->name);
            }
         } else if (state->current_function->return_type->base_type ==
                    GLSL_TYPE_VOID) {
            YYLTYPE loc = this->get_location();

            /* The ARB_shading_language_420pack, GLSL ES 3.0, and GLSL 4.20
             * specs add a clarification:
             *
             *    "A void function can only use return without a return argument, even if
             *     the return argument has void type. Return statements only accept values:
             *
             *         void func1() { }
             *         void func2() { return func1(); } // illegal return statement"
             */
            _mesa_glsl_error(& loc, state,
                             "void functions can only use `return' without a "
                             "return argument");
         }
d3214 34
a3247 12
         inst = new(ctx) ir_return(ret);
      } else {
         if (state->current_function->return_type->base_type !=
             GLSL_TYPE_VOID) {
            YYLTYPE loc = this->get_location();

            _mesa_glsl_error(& loc, state,
                             "`return' with no value, in function %s returning "
                             "non-void",
            state->current_function->function_name());
         }
         inst = new(ctx) ir_return;
d3256 2
a3257 2
      if (state->stage != MESA_SHADER_FRAGMENT) {
         YYLTYPE loc = this->get_location();
d3259 2
a3260 2
         _mesa_glsl_error(& loc, state,
                          "`discard' may only appear in a fragment shader");
d3267 33
a3299 50
      if (mode == ast_continue &&
          state->loop_nesting_ast == NULL) {
         YYLTYPE loc = this->get_location();

         _mesa_glsl_error(& loc, state, "continue may only appear in a loop");
      } else if (mode == ast_break &&
         state->loop_nesting_ast == NULL &&
         state->switch_state.switch_nesting_ast == NULL) {
         YYLTYPE loc = this->get_location();

         _mesa_glsl_error(& loc, state,
                          "break may only appear in a loop or a switch");
      } else {
         /* For a loop, inline the for loop expression again, since we don't
          * know where near the end of the loop body the normal copy of it is
          * going to be placed.  Same goes for the condition for a do-while
          * loop.
          */
         if (state->loop_nesting_ast != NULL &&
             mode == ast_continue) {
            if (state->loop_nesting_ast->rest_expression) {
               state->loop_nesting_ast->rest_expression->hir(instructions,
                                                             state);
            }
            if (state->loop_nesting_ast->mode ==
                ast_iteration_statement::ast_do_while) {
               state->loop_nesting_ast->condition_to_hir(instructions, state);
            }
         }

         if (state->switch_state.is_switch_innermost &&
             mode == ast_break) {
            /* Force break out of switch by setting is_break switch state.
             */
            ir_variable *const is_break_var = state->switch_state.is_break_var;
            ir_dereference_variable *const deref_is_break_var =
               new(ctx) ir_dereference_variable(is_break_var);
            ir_constant *const true_val = new(ctx) ir_constant(true);
            ir_assignment *const set_break_var =
               new(ctx) ir_assignment(deref_is_break_var, true_val);
	    
            instructions->push_tail(set_break_var);
         }
         else {
            ir_loop_jump *const jump =
               new(ctx) ir_loop_jump((mode == ast_break)
                  ? ir_loop_jump::jump_break
                  : ir_loop_jump::jump_continue);
            instructions->push_tail(jump);
         }
d3313 1
a3313 1
                             struct _mesa_glsl_parse_state *state)
d3332 1
a3332 1
                       "boolean");
d3357 3
a3359 3
ir_rvalue *
ast_switch_statement::hir(exec_list *instructions,
                          struct _mesa_glsl_parse_state *state)
d3363 19
a3381 2
   ir_rvalue *const test_expression =
      this->test_expression->hir(instructions, state);
d3383 2
a3384 8
   /* From page 66 (page 55 of the PDF) of the GLSL 1.50 spec:
    *
    *    "The type of init-expression in a switch statement must be a 
    *     scalar integer." 
    */
   if (!test_expression->type->is_scalar() ||
       !test_expression->type->is_integer()) {
      YYLTYPE loc = this->test_expression->get_location();
d3386 3
a3388 4
      _mesa_glsl_error(& loc,
                       state,
                       "switch-statement expression must be scalar "
                       "integer");
d3390 1
a3391 3
   /* Track the switch-statement nesting in a stack-like manner.
    */
   struct glsl_switch_state saved = state->switch_state;
d3393 5
a3397 5
   state->switch_state.is_switch_innermost = true;
   state->switch_state.switch_nesting_ast = this;
   state->switch_state.labels_ht = hash_table_ctor(0, hash_table_pointer_hash,
						   hash_table_pointer_compare);
   state->switch_state.previous_default = NULL;
d3399 1
a3399 1
   /* Initalize is_fallthru state to false.
d3401 2
a3402 6
   ir_rvalue *const is_fallthru_val = new (ctx) ir_constant(false);
   state->switch_state.is_fallthru_var =
      new(ctx) ir_variable(glsl_type::bool_type,
                           "switch_is_fallthru_tmp",
                           ir_var_temporary);
   instructions->push_tail(state->switch_state.is_fallthru_var);
d3404 5
a3408 4
   ir_dereference_variable *deref_is_fallthru_var =
      new(ctx) ir_dereference_variable(state->switch_state.is_fallthru_var);
   instructions->push_tail(new(ctx) ir_assignment(deref_is_fallthru_var,
                                                  is_fallthru_val));
d3410 1
a3410 1
   /* Initalize is_break state to false.
d3412 5
a3416 6
   ir_rvalue *const is_break_val = new (ctx) ir_constant(false);
   state->switch_state.is_break_var =
      new(ctx) ir_variable(glsl_type::bool_type,
                           "switch_is_break_tmp",
                           ir_var_temporary);
   instructions->push_tail(state->switch_state.is_break_var);
d3418 2
a3419 4
   ir_dereference_variable *deref_is_break_var =
      new(ctx) ir_dereference_variable(state->switch_state.is_break_var);
   instructions->push_tail(new(ctx) ir_assignment(deref_is_break_var,
                                                  is_break_val));
d3421 2
a3422 5
   state->switch_state.run_default =
      new(ctx) ir_variable(glsl_type::bool_type,
                             "run_default_tmp",
                             ir_var_temporary);
   instructions->push_tail(state->switch_state.run_default);
d3424 2
a3425 3
   /* Cache test expression.
    */
   test_to_hir(instructions, state);
d3427 2
a3428 3
   /* Emit code for body of switch stmt.
    */
   body->hir(instructions, state);
d3430 2
a3431 1
   hash_table_dtor(state->switch_state.labels_ht);
d3433 4
a3436 1
   state->switch_state = saved;
d3438 2
a3439 1
   /* Switch statements do not have r-values. */
d3444 3
a3446 3
void
ast_switch_statement::test_to_hir(exec_list *instructions,
                                  struct _mesa_glsl_parse_state *state)
d3448 4
a3451 1
   void *ctx = state;
d3453 14
a3466 10
   /* Cache value of test expression. */
   ir_rvalue *const test_val =
      test_expression->hir(instructions,
			   state);

   state->switch_state.test_var = new(ctx) ir_variable(test_val->type,
                                                       "switch_test_tmp",
                                                       ir_var_temporary);
   ir_dereference_variable *deref_test_var =
      new(ctx) ir_dereference_variable(state->switch_state.test_var);
d3468 27
a3494 3
   instructions->push_tail(state->switch_state.test_var);
   instructions->push_tail(new(ctx) ir_assignment(deref_test_var, test_val));
}
d3496 3
d3500 2
a3501 6
ir_rvalue *
ast_switch_body::hir(exec_list *instructions,
                     struct _mesa_glsl_parse_state *state)
{
   if (stmts != NULL)
      stmts->hir(instructions, state);
a3502 1
   /* Switch bodies do not have r-values. */
d3506 1
d3508 2
a3509 2
ast_case_statement_list::hir(exec_list *instructions,
                             struct _mesa_glsl_parse_state *state)
d3511 1
a3511 1
   exec_list default_case, after_default, tmp;
d3513 9
a3521 7
   foreach_list_typed (ast_case_statement, case_stmt, link, & this->cases) {
      case_stmt->hir(&tmp, state);

      /* Default case. */
      if (state->switch_state.previous_default && default_case.is_empty()) {
         default_case.append_list(&tmp);
         continue;
a3522 6

      /* If default case found, append 'after_default' list. */
      if (!default_case.is_empty())
         after_default.append_list(&tmp);
      else
         instructions->append_list(&tmp);
d3525 4
a3528 3
   /* Handle the default case. This is done here because default might not be
    * the last case. We need to add checks against following cases first to see
    * if default should be chosen or not.
d3530 7
a3536 1
   if (!default_case.is_empty()) {
d3538 1
a3538 3
      ir_rvalue *const true_val = new (state) ir_constant(true);
      ir_dereference_variable *deref_run_default_var =
         new(state) ir_dereference_variable(state->switch_state.run_default);
d3540 2
a3541 2
      /* Choose to run default case initially, following conditional
       * assignments might change this.
d3543 4
a3546 8
      ir_assignment *const init_var =
         new(state) ir_assignment(deref_run_default_var, true_val);
      instructions->push_tail(init_var);

      /* Default case was the last one, no checks required. */
      if (after_default.is_empty()) {
         instructions->append_list(&default_case);
         return NULL;
d3549 2
a3550 2
      foreach_in_list(ir_instruction, ir, &after_default) {
         ir_assignment *assign = ir->as_assignment();
d3552 14
a3565 2
         if (!assign)
            continue;
d3567 1
a3567 3
         /* Clone the check between case label and init expression. */
         ir_expression *exp = (ir_expression*) assign->condition;
         ir_expression *clone = exp->clone(state, NULL);
d3569 2
a3570 3
         ir_dereference_variable *deref_var =
            new(state) ir_dereference_variable(state->switch_state.run_default);
         ir_rvalue *const false_val = new (state) ir_constant(false);
d3572 11
a3582 4
         ir_assignment *const set_false =
            new(state) ir_assignment(deref_var, false_val, clone);

         instructions->push_tail(set_false);
a3583 4

      /* Append default case and all cases after it. */
      instructions->append_list(&default_case);
      instructions->append_list(&after_default);
d3586 2
a3587 1
   /* Case statements do not have r-values. */
a3589 1361

ir_rvalue *
ast_case_statement::hir(exec_list *instructions,
                        struct _mesa_glsl_parse_state *state)
{
   labels->hir(instructions, state);

   /* Conditionally set fallthru state based on break state. */
   ir_constant *const false_val = new(state) ir_constant(false);
   ir_dereference_variable *const deref_is_fallthru_var =
      new(state) ir_dereference_variable(state->switch_state.is_fallthru_var);
   ir_dereference_variable *const deref_is_break_var =
      new(state) ir_dereference_variable(state->switch_state.is_break_var);
   ir_assignment *const reset_fallthru_on_break =
      new(state) ir_assignment(deref_is_fallthru_var,
                               false_val,
                               deref_is_break_var);
   instructions->push_tail(reset_fallthru_on_break);

   /* Guard case statements depending on fallthru state. */
   ir_dereference_variable *const deref_fallthru_guard =
      new(state) ir_dereference_variable(state->switch_state.is_fallthru_var);
   ir_if *const test_fallthru = new(state) ir_if(deref_fallthru_guard);

   foreach_list_typed (ast_node, stmt, link, & this->stmts)
      stmt->hir(& test_fallthru->then_instructions, state);

   instructions->push_tail(test_fallthru);

   /* Case statements do not have r-values. */
   return NULL;
}


ir_rvalue *
ast_case_label_list::hir(exec_list *instructions,
                         struct _mesa_glsl_parse_state *state)
{
   foreach_list_typed (ast_case_label, label, link, & this->labels)
      label->hir(instructions, state);

   /* Case labels do not have r-values. */
   return NULL;
}

ir_rvalue *
ast_case_label::hir(exec_list *instructions,
                    struct _mesa_glsl_parse_state *state)
{
   void *ctx = state;

   ir_dereference_variable *deref_fallthru_var =
      new(ctx) ir_dereference_variable(state->switch_state.is_fallthru_var);

   ir_rvalue *const true_val = new(ctx) ir_constant(true);

   /* If not default case, ... */
   if (this->test_value != NULL) {
      /* Conditionally set fallthru state based on
       * comparison of cached test expression value to case label.
       */
      ir_rvalue *const label_rval = this->test_value->hir(instructions, state);
      ir_constant *label_const = label_rval->constant_expression_value();

      if (!label_const) {
         YYLTYPE loc = this->test_value->get_location();

         _mesa_glsl_error(& loc, state,
                          "switch statement case label must be a "
                          "constant expression");

         /* Stuff a dummy value in to allow processing to continue. */
         label_const = new(ctx) ir_constant(0);
      } else {
         ast_expression *previous_label = (ast_expression *)
         hash_table_find(state->switch_state.labels_ht,
                         (void *)(uintptr_t)label_const->value.u[0]);

         if (previous_label) {
            YYLTYPE loc = this->test_value->get_location();
            _mesa_glsl_error(& loc, state, "duplicate case value");

            loc = previous_label->get_location();
            _mesa_glsl_error(& loc, state, "this is the previous case label");
         } else {
            hash_table_insert(state->switch_state.labels_ht,
                              this->test_value,
                              (void *)(uintptr_t)label_const->value.u[0]);
         }
      }

      ir_dereference_variable *deref_test_var =
         new(ctx) ir_dereference_variable(state->switch_state.test_var);

      ir_expression *test_cond = new(ctx) ir_expression(ir_binop_all_equal,
                                                        label_const,
                                                        deref_test_var);

      /*
       * From GLSL 4.40 specification section 6.2 ("Selection"):
       *
       *     "The type of the init-expression value in a switch statement must
       *     be a scalar int or uint. The type of the constant-expression value
       *     in a case label also must be a scalar int or uint. When any pair
       *     of these values is tested for "equal value" and the types do not
       *     match, an implicit conversion will be done to convert the int to a
       *     uint (see section 4.1.10 “Implicit Conversions”) before the compare
       *     is done."
       */
      if (label_const->type != state->switch_state.test_var->type) {
         YYLTYPE loc = this->test_value->get_location();

         const glsl_type *type_a = label_const->type;
         const glsl_type *type_b = state->switch_state.test_var->type;

         /* Check if int->uint implicit conversion is supported. */
         bool integer_conversion_supported =
            glsl_type::int_type->can_implicitly_convert_to(glsl_type::uint_type,
                                                           state);

         if ((!type_a->is_integer() || !type_b->is_integer()) ||
              !integer_conversion_supported) {
            _mesa_glsl_error(&loc, state, "type mismatch with switch "
                             "init-expression and case label (%s != %s)",
                             type_a->name, type_b->name);
         } else {
            /* Conversion of the case label. */
            if (type_a->base_type == GLSL_TYPE_INT) {
               if (!apply_implicit_conversion(glsl_type::uint_type,
                                              test_cond->operands[0], state))
                  _mesa_glsl_error(&loc, state, "implicit type conversion error");
            } else {
               /* Conversion of the init-expression value. */
               if (!apply_implicit_conversion(glsl_type::uint_type,
                                              test_cond->operands[1], state))
                  _mesa_glsl_error(&loc, state, "implicit type conversion error");
            }
         }
      }

      ir_assignment *set_fallthru_on_test =
         new(ctx) ir_assignment(deref_fallthru_var, true_val, test_cond);

      instructions->push_tail(set_fallthru_on_test);
   } else { /* default case */
      if (state->switch_state.previous_default) {
         YYLTYPE loc = this->get_location();
         _mesa_glsl_error(& loc, state,
                          "multiple default labels in one switch");

         loc = state->switch_state.previous_default->get_location();
         _mesa_glsl_error(& loc, state, "this is the first default label");
      }
      state->switch_state.previous_default = this;

      /* Set fallthru condition on 'run_default' bool. */
      ir_dereference_variable *deref_run_default =
         new(ctx) ir_dereference_variable(state->switch_state.run_default);
      ir_rvalue *const cond_true = new(ctx) ir_constant(true);
      ir_expression *test_cond = new(ctx) ir_expression(ir_binop_all_equal,
                                                        cond_true,
                                                        deref_run_default);

      /* Set falltrhu state. */
      ir_assignment *set_fallthru =
         new(ctx) ir_assignment(deref_fallthru_var, true_val, test_cond);

      instructions->push_tail(set_fallthru);
   }

   /* Case statements do not have r-values. */
   return NULL;
}

void
ast_iteration_statement::condition_to_hir(exec_list *instructions,
                                          struct _mesa_glsl_parse_state *state)
{
   void *ctx = state;

   if (condition != NULL) {
      ir_rvalue *const cond =
         condition->hir(instructions, state);

      if ((cond == NULL)
          || !cond->type->is_boolean() || !cond->type->is_scalar()) {
         YYLTYPE loc = condition->get_location();

         _mesa_glsl_error(& loc, state,
                          "loop condition must be scalar boolean");
      } else {
         /* As the first code in the loop body, generate a block that looks
          * like 'if (!condition) break;' as the loop termination condition.
          */
         ir_rvalue *const not_cond =
            new(ctx) ir_expression(ir_unop_logic_not, cond);

         ir_if *const if_stmt = new(ctx) ir_if(not_cond);

         ir_jump *const break_stmt =
            new(ctx) ir_loop_jump(ir_loop_jump::jump_break);

         if_stmt->then_instructions.push_tail(break_stmt);
         instructions->push_tail(if_stmt);
      }
   }
}


ir_rvalue *
ast_iteration_statement::hir(exec_list *instructions,
                             struct _mesa_glsl_parse_state *state)
{
   void *ctx = state;

   /* For-loops and while-loops start a new scope, but do-while loops do not.
    */
   if (mode != ast_do_while)
      state->symbols->push_scope();

   if (init_statement != NULL)
      init_statement->hir(instructions, state);

   ir_loop *const stmt = new(ctx) ir_loop();
   instructions->push_tail(stmt);

   /* Track the current loop nesting. */
   ast_iteration_statement *nesting_ast = state->loop_nesting_ast;

   state->loop_nesting_ast = this;

   /* Likewise, indicate that following code is closest to a loop,
    * NOT closest to a switch.
    */
   bool saved_is_switch_innermost = state->switch_state.is_switch_innermost;
   state->switch_state.is_switch_innermost = false;

   if (mode != ast_do_while)
      condition_to_hir(&stmt->body_instructions, state);

   if (body != NULL)
      body->hir(& stmt->body_instructions, state);

   if (rest_expression != NULL)
      rest_expression->hir(& stmt->body_instructions, state);

   if (mode == ast_do_while)
      condition_to_hir(&stmt->body_instructions, state);

   if (mode != ast_do_while)
      state->symbols->pop_scope();

   /* Restore previous nesting before returning. */
   state->loop_nesting_ast = nesting_ast;
   state->switch_state.is_switch_innermost = saved_is_switch_innermost;

   /* Loops do not have r-values.
    */
   return NULL;
}


/**
 * Determine if the given type is valid for establishing a default precision
 * qualifier.
 *
 * From GLSL ES 3.00 section 4.5.4 ("Default Precision Qualifiers"):
 *
 *     "The precision statement
 *
 *         precision precision-qualifier type;
 *
 *     can be used to establish a default precision qualifier. The type field
 *     can be either int or float or any of the sampler types, and the
 *     precision-qualifier can be lowp, mediump, or highp."
 *
 * GLSL ES 1.00 has similar language.  GLSL 1.30 doesn't allow precision
 * qualifiers on sampler types, but this seems like an oversight (since the
 * intention of including these in GLSL 1.30 is to allow compatibility with ES
 * shaders).  So we allow int, float, and all sampler types regardless of GLSL
 * version.
 */
static bool
is_valid_default_precision_type(const struct glsl_type *const type)
{
   if (type == NULL)
      return false;

   switch (type->base_type) {
   case GLSL_TYPE_INT:
   case GLSL_TYPE_FLOAT:
      /* "int" and "float" are valid, but vectors and matrices are not. */
      return type->vector_elements == 1 && type->matrix_columns == 1;
   case GLSL_TYPE_SAMPLER:
      return true;
   default:
      return false;
   }
}


ir_rvalue *
ast_type_specifier::hir(exec_list *instructions,
                        struct _mesa_glsl_parse_state *state)
{
   if (this->default_precision == ast_precision_none && this->structure == NULL)
      return NULL;

   YYLTYPE loc = this->get_location();

   /* If this is a precision statement, check that the type to which it is
    * applied is either float or int.
    *
    * From section 4.5.3 of the GLSL 1.30 spec:
    *    "The precision statement
    *       precision precision-qualifier type;
    *    can be used to establish a default precision qualifier. The type
    *    field can be either int or float [...].  Any other types or
    *    qualifiers will result in an error.
    */
   if (this->default_precision != ast_precision_none) {
      if (!state->check_precision_qualifiers_allowed(&loc))
         return NULL;

      if (this->structure != NULL) {
         _mesa_glsl_error(&loc, state,
                          "precision qualifiers do not apply to structures");
         return NULL;
      }

      if (this->array_specifier != NULL) {
         _mesa_glsl_error(&loc, state,
                          "default precision statements do not apply to "
                          "arrays");
         return NULL;
      }

      const struct glsl_type *const type =
         state->symbols->get_type(this->type_name);
      if (!is_valid_default_precision_type(type)) {
         _mesa_glsl_error(&loc, state,
                          "default precision statements apply only to "
                          "float, int, and sampler types");
         return NULL;
      }

      if (type->base_type == GLSL_TYPE_FLOAT
          && state->es_shader
          && state->stage == MESA_SHADER_FRAGMENT) {
         /* Section 4.5.3 (Default Precision Qualifiers) of the GLSL ES 1.00
          * spec says:
          *
          *     "The fragment language has no default precision qualifier for
          *     floating point types."
          *
          * As a result, we have to track whether or not default precision has
          * been specified for float in GLSL ES fragment shaders.
          *
          * Earlier in that same section, the spec says:
          *
          *     "Non-precision qualified declarations will use the precision
          *     qualifier specified in the most recent precision statement
          *     that is still in scope. The precision statement has the same
          *     scoping rules as variable declarations. If it is declared
          *     inside a compound statement, its effect stops at the end of
          *     the innermost statement it was declared in. Precision
          *     statements in nested scopes override precision statements in
          *     outer scopes. Multiple precision statements for the same basic
          *     type can appear inside the same scope, with later statements
          *     overriding earlier statements within that scope."
          *
          * Default precision specifications follow the same scope rules as
          * variables.  So, we can track the state of the default float
          * precision in the symbol table, and the rules will just work.  This
          * is a slight abuse of the symbol table, but it has the semantics
          * that we want.
          */
         ir_variable *const junk =
            new(state) ir_variable(type, "#default precision",
                                   ir_var_temporary);

         state->symbols->add_variable(junk);
      }

      /* FINISHME: Translate precision statements into IR. */
      return NULL;
   }

   /* _mesa_ast_set_aggregate_type() sets the <structure> field so that
    * process_record_constructor() can do type-checking on C-style initializer
    * expressions of structs, but ast_struct_specifier should only be translated
    * to HIR if it is declaring the type of a structure.
    *
    * The ->is_declaration field is false for initializers of variables
    * declared separately from the struct's type definition.
    *
    *    struct S { ... };              (is_declaration = true)
    *    struct T { ... } t = { ... };  (is_declaration = true)
    *    S s = { ... };                 (is_declaration = false)
    */
   if (this->structure != NULL && this->structure->is_declaration)
      return this->structure->hir(instructions, state);

   return NULL;
}


/**
 * Process a structure or interface block tree into an array of structure fields
 *
 * After parsing, where there are some syntax differnces, structures and
 * interface blocks are almost identical.  They are similar enough that the
 * AST for each can be processed the same way into a set of
 * \c glsl_struct_field to describe the members.
 *
 * If we're processing an interface block, var_mode should be the type of the
 * interface block (ir_var_shader_in, ir_var_shader_out, or ir_var_uniform).
 * If we're processing a structure, var_mode should be ir_var_auto.
 *
 * \return
 * The number of fields processed.  A pointer to the array structure fields is
 * stored in \c *fields_ret.
 */
unsigned
ast_process_structure_or_interface_block(exec_list *instructions,
                                         struct _mesa_glsl_parse_state *state,
                                         exec_list *declarations,
                                         YYLTYPE &loc,
                                         glsl_struct_field **fields_ret,
                                         bool is_interface,
                                         enum glsl_matrix_layout matrix_layout,
                                         bool allow_reserved_names,
                                         ir_variable_mode var_mode)
{
   unsigned decl_count = 0;

   /* Make an initial pass over the list of fields to determine how
    * many there are.  Each element in this list is an ast_declarator_list.
    * This means that we actually need to count the number of elements in the
    * 'declarations' list in each of the elements.
    */
   foreach_list_typed (ast_declarator_list, decl_list, link, declarations) {
      decl_count += decl_list->declarations.length();
   }

   /* Allocate storage for the fields and process the field
    * declarations.  As the declarations are processed, try to also convert
    * the types to HIR.  This ensures that structure definitions embedded in
    * other structure definitions or in interface blocks are processed.
    */
   glsl_struct_field *const fields = ralloc_array(state, glsl_struct_field,
                                                  decl_count);

   unsigned i = 0;
   foreach_list_typed (ast_declarator_list, decl_list, link, declarations) {
      const char *type_name;

      decl_list->type->specifier->hir(instructions, state);

      /* Section 10.9 of the GLSL ES 1.00 specification states that
       * embedded structure definitions have been removed from the language.
       */
      if (state->es_shader && decl_list->type->specifier->structure != NULL) {
         _mesa_glsl_error(&loc, state, "embedded structure definitions are "
                          "not allowed in GLSL ES 1.00");
      }

      const glsl_type *decl_type =
         decl_list->type->glsl_type(& type_name, state);

      foreach_list_typed (ast_declaration, decl, link,
                          &decl_list->declarations) {
         if (!allow_reserved_names)
            validate_identifier(decl->identifier, loc, state);

         /* From section 4.3.9 of the GLSL 4.40 spec:
          *
          *    "[In interface blocks] opaque types are not allowed."
          *
          * It should be impossible for decl_type to be NULL here.  Cases that
          * might naturally lead to decl_type being NULL, especially for the
          * is_interface case, will have resulted in compilation having
          * already halted due to a syntax error.
          */
         const struct glsl_type *field_type =
            decl_type != NULL ? decl_type : glsl_type::error_type;

         if (is_interface && field_type->contains_opaque()) {
            YYLTYPE loc = decl_list->get_location();
            _mesa_glsl_error(&loc, state,
                             "uniform in non-default uniform block contains "
                             "opaque variable");
         }

         if (field_type->contains_atomic()) {
            /* FINISHME: Add a spec quotation here once updated spec
             * FINISHME: language is available.  See Khronos bug #10903
             * FINISHME: on whether atomic counters are allowed in
             * FINISHME: structures.
             */
            YYLTYPE loc = decl_list->get_location();
            _mesa_glsl_error(&loc, state, "atomic counter in structure or "
                             "uniform block");
         }

         if (field_type->contains_image()) {
            /* FINISHME: Same problem as with atomic counters.
             * FINISHME: Request clarification from Khronos and add
             * FINISHME: spec quotation here.
             */
            YYLTYPE loc = decl_list->get_location();
            _mesa_glsl_error(&loc, state,
                             "image in structure or uniform block");
         }

         const struct ast_type_qualifier *const qual =
            & decl_list->type->qualifier;
         if (qual->flags.q.std140 ||
             qual->flags.q.packed ||
             qual->flags.q.shared) {
            _mesa_glsl_error(&loc, state,
                             "uniform block layout qualifiers std140, packed, and "
                             "shared can only be applied to uniform blocks, not "
                             "members");
         }

         field_type = process_array_type(&loc, decl_type,
                                         decl->array_specifier, state);
         fields[i].type = field_type;
         fields[i].name = decl->identifier;
         fields[i].location = -1;
         fields[i].interpolation =
            interpret_interpolation_qualifier(qual, var_mode, state, &loc);
         fields[i].centroid = qual->flags.q.centroid ? 1 : 0;
         fields[i].sample = qual->flags.q.sample ? 1 : 0;

         /* Only save explicitly defined streams in block's field */
         fields[i].stream = qual->flags.q.explicit_stream ? qual->stream : -1;

         if (qual->flags.q.row_major || qual->flags.q.column_major) {
            if (!qual->flags.q.uniform) {
               _mesa_glsl_error(&loc, state,
                                "row_major and column_major can only be "
                                "applied to uniform interface blocks");
            } else
               validate_matrix_layout_for_type(state, &loc, field_type, NULL);
         }

         if (qual->flags.q.uniform && qual->has_interpolation()) {
            _mesa_glsl_error(&loc, state,
                             "interpolation qualifiers cannot be used "
                             "with uniform interface blocks");
         }

         if ((qual->flags.q.uniform || !is_interface) &&
             qual->has_auxiliary_storage()) {
            _mesa_glsl_error(&loc, state,
                             "auxiliary storage qualifiers cannot be used "
                             "in uniform blocks or structures.");
         }

         /* Propogate row- / column-major information down the fields of the
          * structure or interface block.  Structures need this data because
          * the structure may contain a structure that contains ... a matrix
          * that need the proper layout.
          */
         if (field_type->without_array()->is_matrix()
             || field_type->without_array()->is_record()) {
            /* If no layout is specified for the field, inherit the layout
             * from the block.
             */
            fields[i].matrix_layout = matrix_layout;

            if (qual->flags.q.row_major)
               fields[i].matrix_layout = GLSL_MATRIX_LAYOUT_ROW_MAJOR;
            else if (qual->flags.q.column_major)
               fields[i].matrix_layout = GLSL_MATRIX_LAYOUT_COLUMN_MAJOR;

            /* If we're processing an interface block, the matrix layout must
             * be decided by this point.
             */
            assert(!is_interface
                   || fields[i].matrix_layout == GLSL_MATRIX_LAYOUT_ROW_MAJOR
                   || fields[i].matrix_layout == GLSL_MATRIX_LAYOUT_COLUMN_MAJOR);
         }

         i++;
      }
   }

   assert(i == decl_count);

   *fields_ret = fields;
   return decl_count;
}


ir_rvalue *
ast_struct_specifier::hir(exec_list *instructions,
                          struct _mesa_glsl_parse_state *state)
{
   YYLTYPE loc = this->get_location();

   /* Section 4.1.8 (Structures) of the GLSL 1.10 spec says:
    *
    *     "Anonymous structures are not supported; so embedded structures must
    *     have a declarator. A name given to an embedded struct is scoped at
    *     the same level as the struct it is embedded in."
    *
    * The same section of the  GLSL 1.20 spec says:
    *
    *     "Anonymous structures are not supported. Embedded structures are not
    *     supported.
    *
    *         struct S { float f; };
    *         struct T {
    *             S;              // Error: anonymous structures disallowed
    *             struct { ... }; // Error: embedded structures disallowed
    *             S s;            // Okay: nested structures with name are allowed
    *         };"
    *
    * The GLSL ES 1.00 and 3.00 specs have similar langauge and examples.  So,
    * we allow embedded structures in 1.10 only.
    */
   if (state->language_version != 110 && state->struct_specifier_depth != 0)
      _mesa_glsl_error(&loc, state,
		       "embedded structure declarations are not allowed");

   state->struct_specifier_depth++;

   glsl_struct_field *fields;
   unsigned decl_count =
      ast_process_structure_or_interface_block(instructions,
                                               state,
                                               &this->declarations,
                                               loc,
                                               &fields,
                                               false,
                                               GLSL_MATRIX_LAYOUT_INHERITED,
                                               false /* allow_reserved_names */,
                                               ir_var_auto);

   validate_identifier(this->name, loc, state);

   const glsl_type *t =
      glsl_type::get_record_instance(fields, decl_count, this->name);

   if (!state->symbols->add_type(name, t)) {
      _mesa_glsl_error(& loc, state, "struct `%s' previously defined", name);
   } else {
      const glsl_type **s = reralloc(state, state->user_structures,
                                     const glsl_type *,
                                     state->num_user_structures + 1);
      if (s != NULL) {
         s[state->num_user_structures] = t;
         state->user_structures = s;
         state->num_user_structures++;
      }
   }

   state->struct_specifier_depth--;

   /* Structure type definitions do not have r-values.
    */
   return NULL;
}


/**
 * Visitor class which detects whether a given interface block has been used.
 */
class interface_block_usage_visitor : public ir_hierarchical_visitor
{
public:
   interface_block_usage_visitor(ir_variable_mode mode, const glsl_type *block)
      : mode(mode), block(block), found(false)
   {
   }

   virtual ir_visitor_status visit(ir_dereference_variable *ir)
   {
      if (ir->var->data.mode == mode && ir->var->get_interface_type() == block) {
         found = true;
         return visit_stop;
      }
      return visit_continue;
   }

   bool usage_found() const
   {
      return this->found;
   }

private:
   ir_variable_mode mode;
   const glsl_type *block;
   bool found;
};


ir_rvalue *
ast_interface_block::hir(exec_list *instructions,
                         struct _mesa_glsl_parse_state *state)
{
   YYLTYPE loc = this->get_location();

   /* The ast_interface_block has a list of ast_declarator_lists.  We
    * need to turn those into ir_variables with an association
    * with this uniform block.
    */
   enum glsl_interface_packing packing;
   if (this->layout.flags.q.shared) {
      packing = GLSL_INTERFACE_PACKING_SHARED;
   } else if (this->layout.flags.q.packed) {
      packing = GLSL_INTERFACE_PACKING_PACKED;
   } else {
      /* The default layout is std140.
       */
      packing = GLSL_INTERFACE_PACKING_STD140;
   }

   ir_variable_mode var_mode;
   const char *iface_type_name;
   if (this->layout.flags.q.in) {
      var_mode = ir_var_shader_in;
      iface_type_name = "in";
   } else if (this->layout.flags.q.out) {
      var_mode = ir_var_shader_out;
      iface_type_name = "out";
   } else if (this->layout.flags.q.uniform) {
      var_mode = ir_var_uniform;
      iface_type_name = "uniform";
   } else {
      var_mode = ir_var_auto;
      iface_type_name = "UNKNOWN";
      assert(!"interface block layout qualifier not found!");
   }

   enum glsl_matrix_layout matrix_layout = GLSL_MATRIX_LAYOUT_INHERITED;
   if (this->layout.flags.q.row_major)
      matrix_layout = GLSL_MATRIX_LAYOUT_ROW_MAJOR;
   else if (this->layout.flags.q.column_major)
      matrix_layout = GLSL_MATRIX_LAYOUT_COLUMN_MAJOR;

   bool redeclaring_per_vertex = strcmp(this->block_name, "gl_PerVertex") == 0;
   exec_list declared_variables;
   glsl_struct_field *fields;

   /* Treat an interface block as one level of nesting, so that embedded struct
    * specifiers will be disallowed.
    */
   state->struct_specifier_depth++;

   unsigned int num_variables =
      ast_process_structure_or_interface_block(&declared_variables,
                                               state,
                                               &this->declarations,
                                               loc,
                                               &fields,
                                               true,
                                               matrix_layout,
                                               redeclaring_per_vertex,
                                               var_mode);

   state->struct_specifier_depth--;

   if (!redeclaring_per_vertex)
      validate_identifier(this->block_name, loc, state);

   const glsl_type *earlier_per_vertex = NULL;
   if (redeclaring_per_vertex) {
      /* Find the previous declaration of gl_PerVertex.  If we're redeclaring
       * the named interface block gl_in, we can find it by looking at the
       * previous declaration of gl_in.  Otherwise we can find it by looking
       * at the previous decalartion of any of the built-in outputs,
       * e.g. gl_Position.
       *
       * Also check that the instance name and array-ness of the redeclaration
       * are correct.
       */
      switch (var_mode) {
      case ir_var_shader_in:
         if (ir_variable *earlier_gl_in =
             state->symbols->get_variable("gl_in")) {
            earlier_per_vertex = earlier_gl_in->get_interface_type();
         } else {
            _mesa_glsl_error(&loc, state,
                             "redeclaration of gl_PerVertex input not allowed "
                             "in the %s shader",
                             _mesa_shader_stage_to_string(state->stage));
         }
         if (this->instance_name == NULL ||
             strcmp(this->instance_name, "gl_in") != 0 || this->array_specifier == NULL) {
            _mesa_glsl_error(&loc, state,
                             "gl_PerVertex input must be redeclared as "
                             "gl_in[]");
         }
         break;
      case ir_var_shader_out:
         if (ir_variable *earlier_gl_Position =
             state->symbols->get_variable("gl_Position")) {
            earlier_per_vertex = earlier_gl_Position->get_interface_type();
         } else {
            _mesa_glsl_error(&loc, state,
                             "redeclaration of gl_PerVertex output not "
                             "allowed in the %s shader",
                             _mesa_shader_stage_to_string(state->stage));
         }
         if (this->instance_name != NULL) {
            _mesa_glsl_error(&loc, state,
                             "gl_PerVertex input may not be redeclared with "
                             "an instance name");
         }
         break;
      default:
         _mesa_glsl_error(&loc, state,
                          "gl_PerVertex must be declared as an input or an "
                          "output");
         break;
      }

      if (earlier_per_vertex == NULL) {
         /* An error has already been reported.  Bail out to avoid null
          * dereferences later in this function.
          */
         return NULL;
      }

      /* Copy locations from the old gl_PerVertex interface block. */
      for (unsigned i = 0; i < num_variables; i++) {
         int j = earlier_per_vertex->field_index(fields[i].name);
         if (j == -1) {
            _mesa_glsl_error(&loc, state,
                             "redeclaration of gl_PerVertex must be a subset "
                             "of the built-in members of gl_PerVertex");
         } else {
            fields[i].location =
               earlier_per_vertex->fields.structure[j].location;
            fields[i].interpolation =
               earlier_per_vertex->fields.structure[j].interpolation;
            fields[i].centroid =
               earlier_per_vertex->fields.structure[j].centroid;
            fields[i].sample =
               earlier_per_vertex->fields.structure[j].sample;
         }
      }

      /* From section 7.1 ("Built-in Language Variables") of the GLSL 4.10
       * spec:
       *
       *     If a built-in interface block is redeclared, it must appear in
       *     the shader before any use of any member included in the built-in
       *     declaration, or a compilation error will result.
       *
       * This appears to be a clarification to the behaviour established for
       * gl_PerVertex by GLSL 1.50, therefore we implement this behaviour
       * regardless of GLSL version.
       */
      interface_block_usage_visitor v(var_mode, earlier_per_vertex);
      v.run(instructions);
      if (v.usage_found()) {
         _mesa_glsl_error(&loc, state,
                          "redeclaration of a built-in interface block must "
                          "appear before any use of any member of the "
                          "interface block");
      }
   }

   const glsl_type *block_type =
      glsl_type::get_interface_instance(fields,
                                        num_variables,
                                        packing,
                                        this->block_name);

   if (!state->symbols->add_interface(block_type->name, block_type, var_mode)) {
      YYLTYPE loc = this->get_location();
      _mesa_glsl_error(&loc, state, "interface block `%s' with type `%s' "
                       "already taken in the current scope",
                       this->block_name, iface_type_name);
   }

   /* Since interface blocks cannot contain statements, it should be
    * impossible for the block to generate any instructions.
    */
   assert(declared_variables.is_empty());

   /* From section 4.3.4 (Inputs) of the GLSL 1.50 spec:
    *
    *     Geometry shader input variables get the per-vertex values written
    *     out by vertex shader output variables of the same names. Since a
    *     geometry shader operates on a set of vertices, each input varying
    *     variable (or input block, see interface blocks below) needs to be
    *     declared as an array.
    */
   if (state->stage == MESA_SHADER_GEOMETRY && this->array_specifier == NULL &&
       var_mode == ir_var_shader_in) {
      _mesa_glsl_error(&loc, state, "geometry shader inputs must be arrays");
   }

   /* Page 39 (page 45 of the PDF) of section 4.3.7 in the GLSL ES 3.00 spec
    * says:
    *
    *     "If an instance name (instance-name) is used, then it puts all the
    *     members inside a scope within its own name space, accessed with the
    *     field selector ( . ) operator (analogously to structures)."
    */
   if (this->instance_name) {
      if (redeclaring_per_vertex) {
         /* When a built-in in an unnamed interface block is redeclared,
          * get_variable_being_redeclared() calls
          * check_builtin_array_max_size() to make sure that built-in array
          * variables aren't redeclared to illegal sizes.  But we're looking
          * at a redeclaration of a named built-in interface block.  So we
          * have to manually call check_builtin_array_max_size() for all parts
          * of the interface that are arrays.
          */
         for (unsigned i = 0; i < num_variables; i++) {
            if (fields[i].type->is_array()) {
               const unsigned size = fields[i].type->array_size();
               check_builtin_array_max_size(fields[i].name, size, loc, state);
            }
         }
      } else {
         validate_identifier(this->instance_name, loc, state);
      }

      ir_variable *var;

      if (this->array_specifier != NULL) {
         /* Section 4.3.7 (Interface Blocks) of the GLSL 1.50 spec says:
          *
          *     For uniform blocks declared an array, each individual array
          *     element corresponds to a separate buffer object backing one
          *     instance of the block. As the array size indicates the number
          *     of buffer objects needed, uniform block array declarations
          *     must specify an array size.
          *
          * And a few paragraphs later:
          *
          *     Geometry shader input blocks must be declared as arrays and
          *     follow the array declaration and linking rules for all
          *     geometry shader inputs. All other input and output block
          *     arrays must specify an array size.
          *
          * The upshot of this is that the only circumstance where an
          * interface array size *doesn't* need to be specified is on a
          * geometry shader input.
          */
         if (this->array_specifier->is_unsized_array &&
             (state->stage != MESA_SHADER_GEOMETRY || !this->layout.flags.q.in)) {
            _mesa_glsl_error(&loc, state,
                             "only geometry shader inputs may be unsized "
                             "instance block arrays");

         }

         const glsl_type *block_array_type =
            process_array_type(&loc, block_type, this->array_specifier, state);

         var = new(state) ir_variable(block_array_type,
                                      this->instance_name,
                                      var_mode);
      } else {
         var = new(state) ir_variable(block_type,
                                      this->instance_name,
                                      var_mode);
      }

      var->data.matrix_layout = matrix_layout == GLSL_MATRIX_LAYOUT_INHERITED
         ? GLSL_MATRIX_LAYOUT_COLUMN_MAJOR : matrix_layout;

      if (state->stage == MESA_SHADER_GEOMETRY && var_mode == ir_var_shader_in)
         handle_geometry_shader_input_decl(state, loc, var);

      if (ir_variable *earlier =
          state->symbols->get_variable(this->instance_name)) {
         if (!redeclaring_per_vertex) {
            _mesa_glsl_error(&loc, state, "`%s' redeclared",
                             this->instance_name);
         }
         earlier->data.how_declared = ir_var_declared_normally;
         earlier->type = var->type;
         earlier->reinit_interface_type(block_type);
         delete var;
      } else {
         /* Propagate the "binding" keyword into this UBO's fields;
          * the UBO declaration itself doesn't get an ir_variable unless it
          * has an instance name.  This is ugly.
          */
         var->data.explicit_binding = this->layout.flags.q.explicit_binding;
         var->data.binding = this->layout.binding;

         state->symbols->add_variable(var);
         instructions->push_tail(var);
      }
   } else {
      /* In order to have an array size, the block must also be declared with
       * an instance name.
       */
      assert(this->array_specifier == NULL);

      for (unsigned i = 0; i < num_variables; i++) {
         ir_variable *var =
            new(state) ir_variable(fields[i].type,
                                   ralloc_strdup(state, fields[i].name),
                                   var_mode);
         var->data.interpolation = fields[i].interpolation;
         var->data.centroid = fields[i].centroid;
         var->data.sample = fields[i].sample;
         var->init_interface_type(block_type);

         if (fields[i].matrix_layout == GLSL_MATRIX_LAYOUT_INHERITED) {
            var->data.matrix_layout = matrix_layout == GLSL_MATRIX_LAYOUT_INHERITED
               ? GLSL_MATRIX_LAYOUT_COLUMN_MAJOR : matrix_layout;
         } else {
            var->data.matrix_layout = fields[i].matrix_layout;
         }

         if (fields[i].stream != -1 &&
             ((unsigned)fields[i].stream) != this->layout.stream) {
            _mesa_glsl_error(&loc, state,
                             "stream layout qualifier on "
                             "interface block member `%s' does not match "
                             "the interface block (%d vs %d)",
                             var->name, fields[i].stream, this->layout.stream);
         }

         var->data.stream = this->layout.stream;

         /* Examine var name here since var may get deleted in the next call */
         bool var_is_gl_id = is_gl_identifier(var->name);

         if (redeclaring_per_vertex) {
            ir_variable *earlier =
               get_variable_being_redeclared(var, loc, state,
                                             true /* allow_all_redeclarations */);
            if (!var_is_gl_id || earlier == NULL) {
               _mesa_glsl_error(&loc, state,
                                "redeclaration of gl_PerVertex can only "
                                "include built-in variables");
            } else if (earlier->data.how_declared == ir_var_declared_normally) {
               _mesa_glsl_error(&loc, state,
                                "`%s' has already been redeclared",
                                earlier->name);
            } else {
               earlier->data.how_declared = ir_var_declared_in_block;
               earlier->reinit_interface_type(block_type);
            }
            continue;
         }

         if (state->symbols->get_variable(var->name) != NULL)
            _mesa_glsl_error(&loc, state, "`%s' redeclared", var->name);

         /* Propagate the "binding" keyword into this UBO's fields;
          * the UBO declaration itself doesn't get an ir_variable unless it
          * has an instance name.  This is ugly.
          */
         var->data.explicit_binding = this->layout.flags.q.explicit_binding;
         var->data.binding = this->layout.binding;

         state->symbols->add_variable(var);
         instructions->push_tail(var);
      }

      if (redeclaring_per_vertex && block_type != earlier_per_vertex) {
         /* From section 7.1 ("Built-in Language Variables") of the GLSL 4.10 spec:
          *
          *     It is also a compilation error ... to redeclare a built-in
          *     block and then use a member from that built-in block that was
          *     not included in the redeclaration.
          *
          * This appears to be a clarification to the behaviour established
          * for gl_PerVertex by GLSL 1.50, therefore we implement this
          * behaviour regardless of GLSL version.
          *
          * To prevent the shader from using a member that was not included in
          * the redeclaration, we disable any ir_variables that are still
          * associated with the old declaration of gl_PerVertex (since we've
          * already updated all of the variables contained in the new
          * gl_PerVertex to point to it).
          *
          * As a side effect this will prevent
          * validate_intrastage_interface_blocks() from getting confused and
          * thinking there are conflicting definitions of gl_PerVertex in the
          * shader.
          */
         foreach_in_list_safe(ir_instruction, node, instructions) {
            ir_variable *const var = node->as_variable();
            if (var != NULL &&
                var->get_interface_type() == earlier_per_vertex &&
                var->data.mode == var_mode) {
               if (var->data.how_declared == ir_var_declared_normally) {
                  _mesa_glsl_error(&loc, state,
                                   "redeclaration of gl_PerVertex cannot "
                                   "follow a redeclaration of `%s'",
                                   var->name);
               }
               state->symbols->disable_variable(var->name);
               var->remove();
            }
         }
      }
   }

   return NULL;
}


ir_rvalue *
ast_gs_input_layout::hir(exec_list *instructions,
                         struct _mesa_glsl_parse_state *state)
{
   YYLTYPE loc = this->get_location();

   /* If any geometry input layout declaration preceded this one, make sure it
    * was consistent with this one.
    */
   if (state->gs_input_prim_type_specified &&
       state->in_qualifier->prim_type != this->prim_type) {
      _mesa_glsl_error(&loc, state,
                       "geometry shader input layout does not match"
                       " previous declaration");
      return NULL;
   }

   /* If any shader inputs occurred before this declaration and specified an
    * array size, make sure the size they specified is consistent with the
    * primitive type.
    */
   unsigned num_vertices = vertices_per_prim(this->prim_type);
   if (state->gs_input_size != 0 && state->gs_input_size != num_vertices) {
      _mesa_glsl_error(&loc, state,
                       "this geometry shader input layout implies %u vertices"
                       " per primitive, but a previous input is declared"
                       " with size %u", num_vertices, state->gs_input_size);
      return NULL;
   }

   state->gs_input_prim_type_specified = true;

   /* If any shader inputs occurred before this declaration and did not
    * specify an array size, their size is determined now.
    */
   foreach_in_list(ir_instruction, node, instructions) {
      ir_variable *var = node->as_variable();
      if (var == NULL || var->data.mode != ir_var_shader_in)
         continue;

      /* Note: gl_PrimitiveIDIn has mode ir_var_shader_in, but it's not an
       * array; skip it.
       */

      if (var->type->is_unsized_array()) {
         if (var->data.max_array_access >= num_vertices) {
            _mesa_glsl_error(&loc, state,
                             "this geometry shader input layout implies %u"
                             " vertices, but an access to element %u of input"
                             " `%s' already exists", num_vertices,
                             var->data.max_array_access, var->name);
         } else {
            var->type = glsl_type::get_array_instance(var->type->fields.array,
                                                      num_vertices);
         }
      }
   }

   return NULL;
}


ir_rvalue *
ast_cs_input_layout::hir(exec_list *instructions,
                         struct _mesa_glsl_parse_state *state)
{
   YYLTYPE loc = this->get_location();

   /* If any compute input layout declaration preceded this one, make sure it
    * was consistent with this one.
    */
   if (state->cs_input_local_size_specified) {
      for (int i = 0; i < 3; i++) {
         if (state->cs_input_local_size[i] != this->local_size[i]) {
            _mesa_glsl_error(&loc, state,
                             "compute shader input layout does not match"
                             " previous declaration");
            return NULL;
         }
      }
   }

   /* From the ARB_compute_shader specification:
    *
    *     If the local size of the shader in any dimension is greater
    *     than the maximum size supported by the implementation for that
    *     dimension, a compile-time error results.
    *
    * It is not clear from the spec how the error should be reported if
    * the total size of the work group exceeds
    * MAX_COMPUTE_WORK_GROUP_INVOCATIONS, but it seems reasonable to
    * report it at compile time as well.
    */
   GLuint64 total_invocations = 1;
   for (int i = 0; i < 3; i++) {
      if (this->local_size[i] > state->ctx->Const.MaxComputeWorkGroupSize[i]) {
         _mesa_glsl_error(&loc, state,
                          "local_size_%c exceeds MAX_COMPUTE_WORK_GROUP_SIZE"
                          " (%d)", 'x' + i,
                          state->ctx->Const.MaxComputeWorkGroupSize[i]);
         break;
      }
      total_invocations *= this->local_size[i];
      if (total_invocations >
          state->ctx->Const.MaxComputeWorkGroupInvocations) {
         _mesa_glsl_error(&loc, state,
                          "product of local_sizes exceeds "
                          "MAX_COMPUTE_WORK_GROUP_INVOCATIONS (%d)",
                          state->ctx->Const.MaxComputeWorkGroupInvocations);
         break;
      }
   }

   state->cs_input_local_size_specified = true;
   for (int i = 0; i < 3; i++)
      state->cs_input_local_size[i] = this->local_size[i];

   /* We may now declare the built-in constant gl_WorkGroupSize (see
    * builtin_variable_generator::generate_constants() for why we didn't
    * declare it earlier).
    */
   ir_variable *var = new(state->symbols)
      ir_variable(glsl_type::ivec3_type, "gl_WorkGroupSize", ir_var_auto);
   var->data.how_declared = ir_var_declared_implicitly;
   var->data.read_only = true;
   instructions->push_tail(var);
   state->symbols->add_variable(var);
   ir_constant_data data;
   memset(&data, 0, sizeof(data));
   for (int i = 0; i < 3; i++)
      data.i[i] = this->local_size[i];
   var->constant_value = new(var) ir_constant(glsl_type::ivec3_type, &data);
   var->constant_initializer =
      new(var) ir_constant(glsl_type::ivec3_type, &data);
   var->data.has_initializer = true;

   return NULL;
}


static void
detect_conflicting_assignments(struct _mesa_glsl_parse_state *state,
                               exec_list *instructions)
{
   bool gl_FragColor_assigned = false;
   bool gl_FragData_assigned = false;
   bool user_defined_fs_output_assigned = false;
   ir_variable *user_defined_fs_output = NULL;

   /* It would be nice to have proper location information. */
   YYLTYPE loc;
   memset(&loc, 0, sizeof(loc));

   foreach_in_list(ir_instruction, node, instructions) {
      ir_variable *var = node->as_variable();

      if (!var || !var->data.assigned)
         continue;

      if (strcmp(var->name, "gl_FragColor") == 0)
         gl_FragColor_assigned = true;
      else if (strcmp(var->name, "gl_FragData") == 0)
         gl_FragData_assigned = true;
      else if (!is_gl_identifier(var->name)) {
         if (state->stage == MESA_SHADER_FRAGMENT &&
             var->data.mode == ir_var_shader_out) {
            user_defined_fs_output_assigned = true;
            user_defined_fs_output = var;
         }
      }
   }

   /* From the GLSL 1.30 spec:
    *
    *     "If a shader statically assigns a value to gl_FragColor, it
    *      may not assign a value to any element of gl_FragData. If a
    *      shader statically writes a value to any element of
    *      gl_FragData, it may not assign a value to
    *      gl_FragColor. That is, a shader may assign values to either
    *      gl_FragColor or gl_FragData, but not both. Multiple shaders
    *      linked together must also consistently write just one of
    *      these variables.  Similarly, if user declared output
    *      variables are in use (statically assigned to), then the
    *      built-in variables gl_FragColor and gl_FragData may not be
    *      assigned to. These incorrect usages all generate compile
    *      time errors."
    */
   if (gl_FragColor_assigned && gl_FragData_assigned) {
      _mesa_glsl_error(&loc, state, "fragment shader writes to both "
                       "`gl_FragColor' and `gl_FragData'");
   } else if (gl_FragColor_assigned && user_defined_fs_output_assigned) {
      _mesa_glsl_error(&loc, state, "fragment shader writes to both "
                       "`gl_FragColor' and `%s'",
                       user_defined_fs_output->name);
   } else if (gl_FragData_assigned && user_defined_fs_output_assigned) {
      _mesa_glsl_error(&loc, state, "fragment shader writes to both "
                       "`gl_FragData' and `%s'",
                       user_defined_fs_output->name);
   }
}


static void
remove_per_vertex_blocks(exec_list *instructions,
                         _mesa_glsl_parse_state *state, ir_variable_mode mode)
{
   /* Find the gl_PerVertex interface block of the appropriate (in/out) mode,
    * if it exists in this shader type.
    */
   const glsl_type *per_vertex = NULL;
   switch (mode) {
   case ir_var_shader_in:
      if (ir_variable *gl_in = state->symbols->get_variable("gl_in"))
         per_vertex = gl_in->get_interface_type();
      break;
   case ir_var_shader_out:
      if (ir_variable *gl_Position =
          state->symbols->get_variable("gl_Position")) {
         per_vertex = gl_Position->get_interface_type();
      }
      break;
   default:
      assert(!"Unexpected mode");
      break;
   }

   /* If we didn't find a built-in gl_PerVertex interface block, then we don't
    * need to do anything.
    */
   if (per_vertex == NULL)
      return;

   /* If the interface block is used by the shader, then we don't need to do
    * anything.
    */
   interface_block_usage_visitor v(mode, per_vertex);
   v.run(instructions);
   if (v.usage_found())
      return;

   /* Remove any ir_variable declarations that refer to the interface block
    * we're removing.
    */
   foreach_in_list_safe(ir_instruction, node, instructions) {
      ir_variable *const var = node->as_variable();
      if (var != NULL && var->get_interface_type() == per_vertex &&
          var->data.mode == mode) {
         state->symbols->disable_variable(var->name);
         var->remove();
      }
   }
}
@

