diff options
author | Axel Davy <[email protected]> | 2014-11-24 22:59:21 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2014-12-03 16:39:24 +0100 |
commit | b0302a95ece423f18a710dea391686e1a6557716 (patch) | |
tree | d2a86ce84ad84e2c2dd6ba7c00d285c7d4c9e937 /src/gallium/state_trackers/nine/device9.c | |
parent | 6b35662e30ed873673e539f109a83117176b8bfd (diff) |
st/nine: Queries: Use gallium caps to get if queries are supported. (v2)
Some queries need the driver to advertise a cap to be supported.
For example r300 doesn't support them.
v2 (David): check also for PIPE_CAP_QUERY_PIPELINE_STATISTICS, fix wine
tests on r300g
Reviewed-by: Ilia Mirkin <[email protected]>
Reviewed-by: David Heidelberg <[email protected]>
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/device9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/device9.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index c16f7284799..e9599b853c0 100644 --- a/src/gallium/state_trackers/nine/device9.c +++ b/src/gallium/state_trackers/nine/device9.c @@ -3359,7 +3359,7 @@ NineDevice9_CreateQuery( struct NineDevice9 *This, DBG("This=%p Type=%d ppQuery=%p\n", This, Type, ppQuery); - hr = nine_is_query_supported(Type); + hr = nine_is_query_supported(This->screen, Type); if (!ppQuery || hr != D3D_OK) return hr; |