mesa/src
Brian Ho d203c0add7 anv: Properly fetch partial results in vkGetQueryPoolResults
Currently, fetching the partial results (VK_QUERY_RESULT_PARTIAL_BIT)
of an unavailable occlusion query via vkGetQueryPoolResults can
return invalid values. anv returns slot.end - slot.begin, but in the
case of unavailable queries, slot.end is still at the initial value
of 0. If slot.begin is non-zero, the occlusion count underflows to
a value that is likely outside the acceptable range of the partial
result.

This commit fixes vkGetQueryPoolResults by always returning 0 if the
query is unavailable and the VK_QUERY_RESULT_PARTIAL_BIT is set.

Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3586>
(cherry picked from commit af92ce50a7)
2020-02-03 08:31:30 -08:00
..
amd radv: do not allow sparse resources with multi-planar formats 2020-02-03 08:31:30 -08:00
broadcom meson/broadcom: libbroadcom_cle also needs zlib 2019-12-11 15:46:15 -08:00
compiler glsl: Fix software 64-bit integer to 32-bit float conversions. 2020-01-14 13:26:49 -08:00
drm-shim meson: replace libmesa_util with idep_mesautil 2019-08-03 00:08:37 +00:00
egl egl/android: fix buffer_count for applications setting max count 2020-01-28 08:54:25 -08:00
etnaviv util: remove LIST_IS_EMPTY macro 2019-10-28 11:24:39 +00:00
freedreno turnip: fix invalid VK_ERROR_OUT_OF_POOL_MEMORY 2020-01-28 08:54:25 -08:00
gallium lima: ppir: don't delete root ld_tex nodes without successors in current block 2020-02-03 08:31:30 -08:00
gbm gbm: Add GBM_MAX_PLANES definition 2019-10-18 13:18:28 +00:00
getopt meson: build getopt when using msvc 2019-09-10 20:36:47 +00:00
glx drisw: Cache the depth of the X drawable 2020-01-28 08:54:25 -08:00
gtest delete autotools .gitignore files 2019-04-29 21:17:19 +00:00
hgl haiku: fix Mesa build 2019-10-01 10:31:02 +00:00
imgui imgui: bump imgui memory editor copy 2019-06-18 15:34:13 +00:00
intel anv: Properly fetch partial results in vkGetQueryPoolResults 2020-02-03 08:31:30 -08:00
loader loader: fix close on uninitialized file descriptor value 2020-01-07 09:20:49 -08:00
mapi mesa: enable ARB_gpu_shader_int64 in compat profile 2019-10-30 14:37:27 +02:00
mesa st/mesa: don't lower YUV when driver supports it natively 2020-01-15 20:40:50 +00:00
panfrost panfrost: Remove unused definitions in mali-job.h 2019-10-29 13:02:53 +00:00
util drirc: Set vs_position_always_invariant for Shadow of Mordor on Intel 2019-12-03 10:23:12 -08:00
vulkan util: rename list_empty() to list_is_empty() 2019-10-28 11:24:38 +00:00
meson.build meson: rename glvnd_missing_pc_files to not glvnd_has_headers_and_pc_files 2019-10-10 22:18:04 +01:00
SConscript