layers: GH1478, Add error msg for CB invalidation
authorMark Lobodzinski <mark@lunarg.com>
Tue, 14 Feb 2017 20:08:15 +0000 (13:08 -0700)
committerMark Lobodzinski <mark@lunarg.com>
Wed, 15 Feb 2017 18:28:39 +0000 (11:28 -0700)
commit138e8f50422fef6eb2d71408926ed8308388ce59
tree13119235b4127492c42838daa29326275cf871a0
parenta0536133d2df6e08faec0fbf40e1419fda436603
layers: GH1478, Add error msg for CB invalidation

Previously, any command buffer not in a recording state would emit
an error message indication that BeginCommandBuffer had not been
called. Added a separate message for command buffers that were
invalidated.
  - Combined ValidateCMD and report_error_no_cb_begin
  - For invalidated CBs, output cause of invalidation
  - Updated test for improved error text

Change-Id: Ie72fb0ec039fbd6d4471ba32c75cc540e5c871d3
layers/core_validation.cpp