[Mesa-dev] [PATCH 6/8] etnaviv: expose float formats only if GPU supports it
Wladimir J. van der Laan
laanwj at gmail.com
Sat Oct 21 06:21:40 UTC 2017
On Fri, Oct 20, 2017 at 10:21:26PM +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 | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/src/gallium/drivers/etnaviv/etnaviv_screen.c b/src/gallium/drivers/etnaviv/etnaviv_screen.c
> index 0fba192284..ff52054990 100644
> --- a/src/gallium/drivers/etnaviv/etnaviv_screen.c
> +++ b/src/gallium/drivers/etnaviv/etnaviv_screen.c
> @@ -493,6 +493,10 @@ gpu_supports_texure_format(struct etna_screen *screen, uint32_t fmt,
> */
> if (util_format_is_etc(format))
> supported = VIV_FEATURE(screen, chipMinorFeatures2, HALTI1);
> +
> + /* At the moment we do not differ between half-float and float. */
> + if (util_format_is_float(format))
> + supported = VIV_FEATURE(screen, chipMinorFeatures1, HALF_FLOAT);
> }
>
> if (!supported)
> --
> 2.11.0
>
> _______________________________________________
> etnaviv mailing list
> etnaviv at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/etnaviv
More information about the mesa-dev
mailing list