From d8b2ccdb880f95a15437c384257e6aeea95dba3c Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Wed, 21 Jun 2017 22:36:48 +0200 Subject: etnaviv: add support for snorm textures Based on a patch from Wladimir J. van der Laan and untested due to lack of hardware. Binary blob emits those formats if GPU supports HALTI1 (faked with ibvivhook). Signed-off-by: Christian Gmeiner Reviewed-by: Wladimir J. van der Laan --- src/gallium/drivers/etnaviv/etnaviv_screen.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/drivers/etnaviv/etnaviv_screen.c') diff --git a/src/gallium/drivers/etnaviv/etnaviv_screen.c b/src/gallium/drivers/etnaviv/etnaviv_screen.c index 19d3d91192b..eefb51c5dad 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_screen.c +++ b/src/gallium/drivers/etnaviv/etnaviv_screen.c @@ -473,6 +473,9 @@ gpu_supports_texure_format(struct etna_screen *screen, uint32_t fmt, if (fmt & EXT_FORMAT) supported = VIV_FEATURE(screen, chipMinorFeatures1, HALTI0); + if (util_format_is_snorm(format)) + supported = VIV_FEATURE(screen, chipMinorFeatures2, HALTI1); + if (!supported) return false; -- cgit v1.2.3