nv50/ir: fix threads calculation for non-compute shaders