anv: Move setting current_pipeline to cmd_state_init
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 12 Feb 2018 16:17:57 +0000 (08:17 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 12 Feb 2018 23:18:23 +0000 (15:18 -0800)
commit4c77e21c814145e845bac64cce40eadfd7ac0bd9
tree4a404a198666bd02ff14368c297883bdaf5a6044
parentf37bd726c7211e8680f4a903b2167dacc4de94f2
anv: Move setting current_pipeline to cmd_state_init

We were setting current_pipeline to UINT32_MAX and then calling
cmd_cmd_state_reset which memsets the entire state struct to 0 which
implicitly resets current_pipeline to 3D.  I have no idea how this
hasn't caused everything to explode.

Fixes: cd3feea74582 "anv/cmd_buffer: Rework anv_cmd_state_reset"
cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_cmd_buffer.c