layers: MR182/GL113 Fix dynamic offset validation
authorTobin Ehlis <tobine@google.com>
Fri, 29 Jan 2016 18:50:47 +0000 (11:50 -0700)
committerDustin Graves <dustin@lunarg.com>
Fri, 29 Jan 2016 22:29:23 +0000 (15:29 -0700)
commit2e37bfd2221cb50c4e2bf22e430dadb229a81173
tree527c6f20687c106236913bf170b067ccfa49e27d
parent8f8dfdd1956ce1a5b3c33153416f6794e24c7d7b
layers: MR182/GL113 Fix dynamic offset validation

Dynamic offsets are bound to CB, so move the tracking struct into CB struct.
At draw time, iterate over all of the active sets and verify that each
dynamic set does not overstep its buffer based on the corresponding dynamic offset.
layers/draw_state.cpp
layers/draw_state.h