diff options
author | Christian Gmeiner <[email protected]> | 2017-10-19 23:12:47 +0200 |
---|---|---|
committer | Christian Gmeiner <[email protected]> | 2017-10-20 12:42:48 +0200 |
commit | 57a586828f848bea22f801306db5d38e26565524 (patch) | |
tree | fa08dc15b35048ef960acebc4028b44e6338d8ee /src/gallium | |
parent | 246243d447a081297b9e55de6f5cebcb322a98a9 (diff) |
etnaviv: enable occlusion query if GPU supports it
Signed-off-by: Christian Gmeiner <[email protected]>
Reviewed-by: Wladimir J. van der Laan <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_screen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_screen.c b/src/gallium/drivers/etnaviv/etnaviv_screen.c index 738605a4f30..009bc73c14a 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_screen.c +++ b/src/gallium/drivers/etnaviv/etnaviv_screen.c @@ -319,8 +319,9 @@ etna_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) /* Timer queries. */ case PIPE_CAP_QUERY_TIME_ELAPSED: - case PIPE_CAP_OCCLUSION_QUERY: return 0; + case PIPE_CAP_OCCLUSION_QUERY: + return VIV_FEATURE(screen, chipMinorFeatures1, HALTI0); case PIPE_CAP_QUERY_TIMESTAMP: return 1; case PIPE_CAP_QUERY_PIPELINE_STATISTICS: |