diff options
author | Grazvydas Ignotas <[email protected]> | 2018-01-23 00:44:36 +0200 |
---|---|---|
committer | Grazvydas Ignotas <[email protected]> | 2018-01-25 01:10:45 +0200 |
commit | 0cc7370733e9d20999d13c4c8565f0c91846a45c (patch) | |
tree | c78c5c8f7d5bbc23f250facb7ea02e2783f515b5 /src/intel/vulkan | |
parent | a2a1b0e75ef9adeb17468509c5f6331b42f6dc2e (diff) |
anv: correct a duplicate check in an assert
Looks like checking both sources was intended, instead of the first one
twice. Found with Coccinelle, coccinellery/xand/xand.cocci semantic patch.
Signed-off-by: Grazvydas Ignotas <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/anv_nir_apply_pipeline_layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_nir_apply_pipeline_layout.c b/src/intel/vulkan/anv_nir_apply_pipeline_layout.c index 978a8a57c70..6775f9b464e 100644 --- a/src/intel/vulkan/anv_nir_apply_pipeline_layout.c +++ b/src/intel/vulkan/anv_nir_apply_pipeline_layout.c @@ -147,7 +147,7 @@ lower_res_reindex_intrinsic(nir_intrinsic_instr *intrin, * array elements are sequential. A resource_reindex just turns into an * add of the two indices. */ - assert(intrin->src[0].is_ssa && intrin->src[0].is_ssa); + assert(intrin->src[0].is_ssa && intrin->src[1].is_ssa); nir_ssa_def *new_index = nir_iadd(b, intrin->src[0].ssa, intrin->src[1].ssa); |