The integers are unsigned so they do the same but this makes it
locally more clear what happened.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6071>
/* There is no real maximum */
caps->maxImageCount = 0;
- caps->currentExtent = (VkExtent2D) { -1, -1 };
+ caps->currentExtent = (VkExtent2D) { UINT32_MAX, UINT32_MAX };
caps->minImageExtent = (VkExtent2D) { 1, 1 };
caps->maxImageExtent = (VkExtent2D) {
wsi_device->maxImageDimension2D,
/* We don't know a size so just return the usual "I don't know." */
*rect = (VkRect2D) {
.offset = { 0, 0 },
- .extent = { -1, -1 },
+ .extent = { UINT32_MAX, UINT32_MAX },
};
}
* to come back from the compositor. In that case, we don't know the
* size of the window so we just return valid "I don't know" stuff.
*/
- caps->currentExtent = (VkExtent2D) { -1, -1 };
+ caps->currentExtent = (VkExtent2D) { UINT32_MAX, UINT32_MAX };
caps->minImageExtent = (VkExtent2D) { 1, 1 };
caps->maxImageExtent = (VkExtent2D) {
wsi_device->maxImageDimension2D,
*/
*rect = (VkRect2D) {
.offset = { 0, 0 },
- .extent = { -1, -1 },
+ .extent = { UINT32_MAX, UINT32_MAX },
};
}
free(geom);