layers: Migrate DrawState global data structs to layer_data struct

DrawState maps are all now stored per-device and per-instance.
Also fixed a bug where renderPassMap ptrs were not being cleaned up.
2 files changed