First patch fixes the limits for Turing, second one fixes the amount of smem we set for a given shader.