[PATCH v2] wined3d: Use query buffer objects for occlusion queries.
Henri Verbeet
hverbeet at gmail.com
Fri Sep 28 02:38:27 CDT 2018
On 26 September 2018 at 22:54, Andrew Wesie <awesie at gmail.com> wrote:
> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45723
> Signed-off-by: Andrew Wesie <awesie at gmail.com>
> ---
>
> v2: Remove QUERY_INVALID_VALUE. Instead, use two elements of results buffer.
> Initialize the elements to different values, then update both of them with
> the query result. Once the elements are equal, we know that we have the
> result.
>
> dlls/wined3d/adapter_gl.c | 6 ++
> dlls/wined3d/query.c | 166 ++++++++++++++++++++++++++++++++++++-----
> dlls/wined3d/wined3d_gl.h | 2 +
> dlls/wined3d/wined3d_private.h | 3 +
> 4 files changed, 158 insertions(+), 19 deletions(-)
>
Unfortunately this patch fails the tests, due to issues related to
handling query restarts. I've attached a slightly modified version
that does pass the tests for me. Does the attached patch work for you?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-wined3d-Use-query-buffer-objects-for-occlusion-queri.patch
Type: text/x-patch
Size: 10174 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20180928/edcd2457/attachment-0001.bin>
More information about the wine-devel
mailing list