mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 21:40:08 +01:00
etnaviv: enable ETC2 texture compression support for HALTI0 GPUs
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
This commit is contained in:
parent
5d09325c1c
commit
f1061fa577
1 changed files with 1 additions and 11 deletions
|
|
@ -518,19 +518,9 @@ gpu_supports_texure_format(struct etna_screen *screen, uint32_t fmt,
|
|||
if (util_format_is_srgb(format))
|
||||
supported = VIV_FEATURE(screen, chipMinorFeatures1, HALTI0);
|
||||
|
||||
if (fmt & EXT_FORMAT) {
|
||||
if (fmt & EXT_FORMAT)
|
||||
supported = VIV_FEATURE(screen, chipMinorFeatures1, HALTI0);
|
||||
|
||||
/* ETC1 is checked above, as it has its own feature bit. ETC2 is
|
||||
* supported with HALTI0, however that implementation is buggy in hardware.
|
||||
* The blob driver does per-block patching to work around this. As this
|
||||
* is currently not implemented by etnaviv, enable it for HALTI1 (GC3000)
|
||||
* only.
|
||||
*/
|
||||
if (util_format_is_etc(format))
|
||||
supported = VIV_FEATURE(screen, chipMinorFeatures2, HALTI1);
|
||||
}
|
||||
|
||||
if (fmt & ASTC_FORMAT) {
|
||||
supported = screen->specs.tex_astc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue