Closed GABO1423 closed 1 year ago
3 matches for "std::max" in buffer: spirv_msl.cpp
2367: num_components = std::max(num_components, get_target_components_for_fragment_location(locn));
3849: location_meta.num_components = std::max(location_meta.num_components, component + type.vecsize);
7209: last_significant = std::max(last_reference, last_pointer);
Looks like that should instead be something more like:
4 matches for "max<" in buffer: spirv_msl.cpp
4518: array_stride /= max<uint32_t>(array_size, 1u);
4725: array_stride /= max<uint32_t>(to_array_size_literal(mbr_type, dim), 1u);
15923: value_size *= max<uint32_t>(array_size, 1u);
16034: return get_declared_type_array_stride_msl(type, is_packed, row_major) * max<uint32_t>(array_size, 1u);
@warmenhoven Your commit did fix the errors... but new ones came up:
Visual Studio also shows up some code errors in the file:
Should be fixed by this now - https://github.com/libretro/RetroArch/commit/993d4ee64f1ca040e87065535c5e4e50ef31d7e5
Can confirm it's fixed. Closing
Description
Either PR https://github.com/libretro/RetroArch/pull/14850 or https://github.com/libretro/RetroArch/pull/14853 broke UWP builds.
These are the errors:
@warmenhoven Since you were behind both PRs, do you have any thoughts about these errors?
Expected behavior
RetroArch to build
Actual behavior
Build errors
Bisect Results
Either PR https://github.com/libretro/RetroArch/pull/14850 or https://github.com/libretro/RetroArch/pull/14853 were the culprits.
Environment information