diff options
author | Jason Ekstrand <[email protected]> | 2016-07-16 08:21:50 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-12-05 15:40:10 -0800 |
commit | 7db009b59ee9df3a106f2f7e440a3ff9223b268f (patch) | |
tree | 93829e0ccc89442975d2cc92f8837be795711ecd /src/compiler/nir/nir.h | |
parent | 50e0b0bee3fb97089cf9913af7a0c980dfce6dce (diff) |
nir: Remove some unused fields from nir_variable
All of these are happily set from glsl_to_nir or spirv_to_nir but their
values are never used for anything.
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r-- | src/compiler/nir/nir.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 1ab57379120..544d4baddb0 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -194,32 +194,6 @@ typedef struct nir_variable { /*@}*/ /** - * Was the location explicitly set in the shader? - * - * If the location is explicitly set in the shader, it \b cannot be changed - * by the linker or by the API (e.g., calls to \c glBindAttribLocation have - * no effect). - */ - unsigned explicit_location:1; - unsigned explicit_index:1; - - /** - * Was an initial binding explicitly set in the shader? - * - * If so, constant_initializer contains an integer nir_constant - * representing the initial binding point. - */ - unsigned explicit_binding:1; - - /** - * Does this variable have an initializer? - * - * This is used by the linker to cross-validiate initializers of global - * variables. - */ - unsigned has_initializer:1; - - /** * If non-zero, then this variable may be packed along with other variables * into a single varying slot, so this offset should be applied when * accessing components. For example, an offset of 1 means that the x @@ -312,14 +286,6 @@ typedef struct nir_variable { /** Image internal format if specified explicitly, otherwise GL_NONE. */ GLenum format; } image; - - /** - * Highest element accessed with a constant expression array index - * - * Not used for non-array variables. - */ - unsigned max_array_access; - } data; /** |