When using AMD pro-drivers the limits reported of the device can be `UINT_MAX` but are stored in int fields. In this case the limits would become negative and GPU materials validation failed resulting into errors. This is fixed by clamping the value to `INT_MAX`. Pull Request: https://projects.blender.org/blender/blender/pulls/128437