[PATCH resend2 4/5] d3drm: Strengthen check for valid viewport dimensions.