[Mesa-dev] [PATCH 3/8] etnaviv: update RS_FORMAT_MASK to include extended formats
Wladimir J. van der Laan
laanwj at gmail.com
Sat Oct 21 06:19:55 UTC 2017
On Fri, Oct 20, 2017 at 10:21:23PM +0200, Christian Gmeiner wrote:
> Also update RS_FORMAT_RB_SWAP.
>
> Signed-off-by: Christian Gmeiner <christian.gmeiner at gmail.com>
Reviewed-by: Wladimir J. van der Laan <laanwj at gmail.com>
> ---
> src/gallium/drivers/etnaviv/etnaviv_format.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/gallium/drivers/etnaviv/etnaviv_format.c b/src/gallium/drivers/etnaviv/etnaviv_format.c
> index a2e215b439..7297de3d85 100644
> --- a/src/gallium/drivers/etnaviv/etnaviv_format.c
> +++ b/src/gallium/drivers/etnaviv/etnaviv_format.c
> @@ -45,9 +45,9 @@ struct etna_format {
>
> #define RS_FORMAT_NONE ~0
>
> -#define RS_FORMAT_MASK 0xf
> +#define RS_FORMAT_MASK 0x1f
> #define RS_FORMAT(x) ((x) & RS_FORMAT_MASK)
> -#define RS_FORMAT_RB_SWAP 0x10
> +#define RS_FORMAT_RB_SWAP 0x20
>
> #define RS_FORMAT_X8B8G8R8 (RS_FORMAT_X8R8G8B8 | RS_FORMAT_RB_SWAP)
> #define RS_FORMAT_A8B8G8R8 (RS_FORMAT_A8R8G8B8 | RS_FORMAT_RB_SWAP)
> --
> 2.11.0
>
> _______________________________________________
> etnaviv mailing list
> etnaviv at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/etnaviv
More information about the mesa-dev
mailing list