[Mesa-dev] [PATCH] radeonsi: add ETC1 support for Stoney

Alex Deucher alexdeucher at gmail.com
Fri Jan 22 07:28:41 PST 2016


On Fri, Jan 22, 2016 at 10:22 AM, Marek Olšák <maraeo at gmail.com> wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> It's a subset of ETC2. Tested.
>
> For more information, see page 42 and onward:
> http://www.graphicshardware.org/previous/www_2007/presentations/strom-etc2-gh07.pdf

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  src/gallium/drivers/radeonsi/si_state.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
> index 1be260d..9c30c39 100644
> --- a/src/gallium/drivers/radeonsi/si_state.c
> +++ b/src/gallium/drivers/radeonsi/si_state.c
> @@ -1487,6 +1487,7 @@ static uint32_t si_translate_texformat(struct pipe_screen *screen,
>         if (desc->layout == UTIL_FORMAT_LAYOUT_ETC &&
>             sscreen->b.family >= CHIP_STONEY) {
>                 switch (format) {
> +               case PIPE_FORMAT_ETC1_RGB8:
>                 case PIPE_FORMAT_ETC2_RGB8:
>                 case PIPE_FORMAT_ETC2_SRGB8:
>                         return V_008F14_IMG_DATA_FORMAT_ETC2_RGB;
> --
> 2.1.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list