lavapipe: clamp 32bit query results to low 32 bits rather than MIN
this should be more consistent with hardware driver behavior cc: mesa-stable Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28671>
This commit is contained in:
committed by
Marge Bot
parent
129bebd519
commit
ede4e4aae3
@@ -195,7 +195,7 @@ VKAPI_ATTR VkResult VKAPI_CALL lvp_GetQueryPoolResults(
|
||||
*dest32++ = (uint32_t)
|
||||
MIN2(result.so_statistics.primitives_storage_needed, UINT32_MAX);
|
||||
} else {
|
||||
*dest32++ = (uint32_t) MIN2(result.u64, UINT32_MAX);
|
||||
*dest32++ = (uint32_t) (result.u64 & UINT32_MAX);
|
||||
}
|
||||
} else {
|
||||
if (pool->type == VK_QUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT) {
|
||||
|
||||
Reference in New Issue
Block a user