r600g: fix gpr usage intersection and add conditiona code handling