OSDN Git Service

anv/apply_pipeline_layout: Set the cursor in lower_res_reindex_intrinsic
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 14 Dec 2018 00:33:46 +0000 (18:33 -0600)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 11 Jan 2019 19:19:09 +0000 (19:19 +0000)
commitca8ef8234e5564568cf4b96d3fc337d8941dbc6c
treeb532bda42fe4c3d279e7097d55de12f0ff969e95
parent484efe75e4862b118351dd16e5a232d3e579c366
anv/apply_pipeline_layout: Set the cursor in lower_res_reindex_intrinsic

The loop through instructions doesn't set the cursor for us so unless we
set it somewhere, we may end up emitting instructions in the wrong
place.  The only reason why we haven't been bitten by this in the past
is that it only happens in a few variable pointers cases and the CTS
tests for those don't use much control flow so things were getting
emitted in the correct order by accident.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
(cherry picked from commit f8992eb5badf91e0d9ad3732d56a4e3d78fd1abf)
src/intel/vulkan/anv_nir_apply_pipeline_layout.c