diff options
author | Timothy Arceri <[email protected]> | 2018-02-21 14:36:09 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2018-02-22 09:31:00 +1100 |
commit | cdeac002677774b14b78bb234aa082bbc499f933 (patch) | |
tree | fea4fb98f0ebf7c2bba43026053fabe878cd77ca /src/compiler | |
parent | 86098696fc980cd0d324d2f2c978a320f0418f38 (diff) |
nir: remove old assert
This was originally intended to make sure the remap location
was not -1. However the code has changed alot since then,
the location is now never set to -1 and we also handle
components meaning this old assert has been doing comparisions
with the pointer to the array of component data.
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Iago Toral Quiroga <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105183
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/nir/nir_linking_helpers.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_linking_helpers.c b/src/compiler/nir/nir_linking_helpers.c index 6459c6a24d2..2b0a2668a33 100644 --- a/src/compiler/nir/nir_linking_helpers.c +++ b/src/compiler/nir/nir_linking_helpers.c @@ -283,7 +283,6 @@ remap_slots_and_components(struct exec_list *var_list, gl_shader_stage stage, if (var->data.location >= VARYING_SLOT_VAR0 && var->data.location - VARYING_SLOT_VAR0 < 32) { assert(var->data.location - VARYING_SLOT_VAR0 < 32); - assert(remap[var->data.location - VARYING_SLOT_VAR0] >= 0); const struct glsl_type *type = var->type; if (nir_is_per_vertex_io(var, stage)) { |