mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 21:40:20 +01:00
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:
parent
129bebd519
commit
ede4e4aae3
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue