[Mesa-dev] [PATCH 2/2] st/mesa: also try PIPE_FORMAT_R10G10B10A2_UNORM for GL_RGB10

Ilia Mirkin imirkin at alum.mit.edu
Tue Apr 28 15:22:46 PDT 2015


Presumably you should also include RGB10_X2 while you're at it?

With that, Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

On Tue, Apr 28, 2015 at 6:16 PM, Brian Paul <brianp at vmware.com> wrote:
> ---
>  src/mesa/state_tracker/st_format.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
> index 181465d..db7b5b7 100644
> --- a/src/mesa/state_tracker/st_format.c
> +++ b/src/mesa/state_tracker/st_format.c
> @@ -991,7 +991,7 @@ static const struct format_mapping format_map[] = {
>     {
>        { GL_RGB10, 0 },
>        { PIPE_FORMAT_B10G10R10X2_UNORM, PIPE_FORMAT_B10G10R10A2_UNORM,
> -        DEFAULT_RGB_FORMATS }
> +        PIPE_FORMAT_R10G10B10A2_UNORM, DEFAULT_RGB_FORMATS }
>     },
>     {
>        { GL_RGB10_A2, 0 },
> --
> 1.9.1
>
> _______________________________________________
> 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