Reviewed-by: Bruce Cherniak <[email protected]>

> On Nov 12, 2016, at 5:00 PM, Ilia Mirkin <[email protected]> wrote:
> 
> The support in swr requires shaders to output the components as UINTs.
> This is not how GL or Gallium work, and since this is not a
> required-renderable format, just leave it out.
> 
> Signed-off-by: Ilia Mirkin <[email protected]>
> ---
> src/gallium/drivers/swr/swr_screen.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/gallium/drivers/swr/swr_screen.cpp 
> b/src/gallium/drivers/swr/swr_screen.cpp
> index c694457..accd6a2 100644
> --- a/src/gallium/drivers/swr/swr_screen.cpp
> +++ b/src/gallium/drivers/swr/swr_screen.cpp
> @@ -545,7 +545,7 @@ mesa_to_swr_format(enum pipe_format format)
>       {PIPE_FORMAT_B5G5R5X1_UNORM,         B5G5R5X1_UNORM},
>       {PIPE_FORMAT_R10G10B10A2_USCALED,    R10G10B10A2_USCALED},
>       {PIPE_FORMAT_R11G11B10_FLOAT,        R11G11B10_FLOAT},
> -      {PIPE_FORMAT_R9G9B9E5_FLOAT,         R9G9B9E5_SHAREDEXP},
> +      {PIPE_FORMAT_R9G9B9E5_FLOAT,         (SWR_FORMAT)-1},
>       {PIPE_FORMAT_Z32_FLOAT_S8X24_UINT,   R32_FLOAT_X8X24_TYPELESS}, // z
>       {PIPE_FORMAT_R1_UNORM,               (SWR_FORMAT)-1},
>       {PIPE_FORMAT_R10G10B10X2_USCALED,    R10G10B10X2_USCALED},
> -- 
> 2.7.3
> 
> _______________________________________________
> mesa-dev mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev

_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to