diff options
author | Christian Gmeiner <[email protected]> | 2017-06-21 22:36:48 +0200 |
---|---|---|
committer | Christian Gmeiner <[email protected]> | 2017-06-26 19:59:42 +0200 |
commit | d8b2ccdb880f95a15437c384257e6aeea95dba3c (patch) | |
tree | c0f2eff3eab36640ebb6c20409d462af412b42b0 /src/gallium/drivers/etnaviv/etnaviv_screen.c | |
parent | 3bbf8dcfe492560fc03145bc637f424092fd7e03 (diff) |
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 <[email protected]>
Reviewed-by: Wladimir J. van der Laan <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_screen.c')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_screen.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |