Add support for dss_write. Enable writing in depth buffer for dss_write, when depth conversion is active data will be writen in the depth buffer, if not then use the old method (don't write).