Fix a possible rounding error

The unsigned depth8 should be converted to Depth
before adding DEPTH_NONE that is negative.

bench: 8095369