Only include necessary parts of metadata

Taken from upstream r600.
Regenerate metadata skipping unneeded parts.