[PATCH 4/5] etnaviv: enable occlusion query if GPU supports it
Wladimir J. van der Laan
laanwj at gmail.com
Thu Oct 19 17:47:01 UTC 2017
On Tue, Oct 17, 2017 at 10:38:16PM +0200, Christian Gmeiner wrote:
> Signed-off-by: Christian Gmeiner <christian.gmeiner at gmail.com>
Reviewed-by: Wladimir J. van der Laan <laanwj at gmail.com>
> ---
> src/gallium/drivers/etnaviv/etnaviv_screen.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/etnaviv/etnaviv_screen.c b/src/gallium/drivers/etnaviv/etnaviv_screen.c
> index 738605a4f3..009bc73c14 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:
> --
> 2.13.6
>
> _______________________________________________
> etnaviv mailing list
> etnaviv at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/etnaviv
More information about the etnaviv
mailing list