[Mesa-dev] [PATCH 7/8] st/nine: Queries: always succeed for D3DQUERYTYPE_TIMESTAMP when flushing
Axel Davy
axel.davy at ens.fr
Tue Dec 2 13:12:58 PST 2014
This is the behaviour that Wine tests
Tested-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
---
src/gallium/state_trackers/nine/query9.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/state_trackers/nine/query9.c b/src/gallium/state_trackers/nine/query9.c
index f22e821..c87b019 100644
--- a/src/gallium/state_trackers/nine/query9.c
+++ b/src/gallium/state_trackers/nine/query9.c
@@ -223,6 +223,9 @@ NineQuery9_GetData( struct NineQuery9 *This,
wait_query_result = TRUE;
}
+ /* Wine tests: D3DQUERYTYPE_TIMESTAMP always succeeds */
+ wait_query_result |= This->type == D3DQUERYTYPE_TIMESTAMP;
+
/* Note: We ignore dwGetDataFlags, because get_query_result will
* flush automatically if needed */
--
2.1.0
More information about the mesa-dev
mailing list