RSX: add alpha func/ref , depth func/mask and bug fix