tests: Ensure texture mipCount is valid

Look up the allowed image formats for the image being
created and clamp the mipCount to be no more than
the allowed maximum.
1 file changed