gl: optimize for tiled-based architecture when clear gl surface

For tiled-based architecture, glClear is optimized for clearing
color, stencil and depth buffer