anv: fix pipeline switch back for non pipelined states
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 14 Jan 2020 22:05:30 +0000 (00:05 +0200)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 15 Jan 2020 09:14:43 +0000 (11:14 +0200)
commita01410549807cc4db6fc5fe10c47649cde1fe3fc
treeab76cd9d5352e71076eaed018a75a363832602a7
parentfce28a7341e670698f16e57907335653a9ec8261
anv: fix pipeline switch back for non pipelined states

Setting state base address can happen even before pipeline is
selected. Also we must ensure it is set to 3D for Gen12, we can't
switch back to an invalid pipeline value (UINT32_MAX).

v2: Reuse helpers (Jason)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: b34422db5e66 ("anv: Implement Gen12 workaround for non pipelined state")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3396>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3396>
src/intel/vulkan/genX_cmd_buffer.c