layers: Fix invalid push constant checks (GH953)
authorKarl Schultz <karl@lunarg.com>
Fri, 24 Feb 2017 22:45:05 +0000 (15:45 -0700)
committerKarl Schultz <karl@lunarg.com>
Mon, 6 Mar 2017 22:17:27 +0000 (15:17 -0700)
commit713cefc6f3d451e3f4f9b6034b068f9193bf944d
tree1d9d81cb7521299e4eea952a6946c7d9d01b6d63
parent5d1eab3204e51bb5a66025f6a1df9bae98cbffc8
layers: Fix invalid push constant checks (GH953)

Rework of invalid push constant checks, motivated mostly
by some spec updates and prior bad assumptions.

- Add check/test for a shader stage flag being set more
  than once in CreatePipelineLayout.
- Remove checks and tests having to do with warning about
  overlapping ranges in CreatePipelineLayout.  Ranges can
  certainly overlap when used in different stages.  And
  the prohibition of more than one range with the same
  stage flag removes the possibility of overlap in the same
  stage.  These checks were warnings and so probably not
  noticed.

Fixes #953
Finishes VU 00871

Change-Id: Icc9d3d84fa3132f266075f2f1d45c243e9e1a65f
layers/core_validation.cpp
layers/vk_validation_error_database.txt