[Mesa-dev] [PATCH 6/8] etnaviv: expose float formats only if GPU supports it
Christian Gmeiner
christian.gmeiner at gmail.com
Fri Oct 20 20:21:26 UTC 2017
Signed-off-by: Christian Gmeiner <christian.gmeiner 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
More information about the mesa-dev
mailing list