The following patches generalise the blitter_clear functions such that they may work with multiple layers: Changes since v1: - Directly calc num_layers over using util_framebuffer_get_num_layers() on the framebuffer state.