anv/cmd_buffer: Rework anv_cmd_state_reset
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 15 Dec 2017 17:23:08 +0000 (09:23 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 24 Jan 2018 05:10:22 +0000 (21:10 -0800)
commitcd3feea74582cea2d18306d167609f4fbe681bb3
tree78dcba4eddef6f643bbf25e998870e29dd461fdd
parentd6c9a89d1324ed2c723cbd3c6d8390691c58dfd2
anv/cmd_buffer: Rework anv_cmd_state_reset

This splits anv_cmd_state_reset into separate init and finish functions.
This lets us share init code with cmd_buffer_create.  This potentially
fixes subtle bugs where we may have missed some bit of state that needs
to get initialized on command buffer creation.

Tested-by: Józef Kucia <joseph.kucia@gmail.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Cc: "18.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_cmd_buffer.c