From: Eric Anholt Date: Fri, 6 Sep 2019 23:30:26 +0000 (-0700) Subject: mesa/st: Add mapping of MESA_FORMAT_RGB_SNORM16 to gallium. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb9fefe1db40f8f1bc6efb9f9fe370e89cf54057;p=mesa.git mesa/st: Add mapping of MESA_FORMAT_RGB_SNORM16 to gallium. Reviewed-by: Marek Olšák --- diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c index 9ade30de70b..cdfeac25df1 100644 --- a/src/mesa/state_tracker/st_format.c +++ b/src/mesa/state_tracker/st_format.c @@ -384,6 +384,8 @@ st_mesa_format_to_pipe_format(const struct st_context *st, return PIPE_FORMAT_R16_SNORM; case MESA_FORMAT_RG_SNORM16: return PIPE_FORMAT_R16G16_SNORM; + case MESA_FORMAT_RGB_SNORM16: + return PIPE_FORMAT_R16G16B16_SNORM; case MESA_FORMAT_RGBA_SNORM16: return PIPE_FORMAT_R16G16B16A16_SNORM; @@ -969,6 +971,8 @@ st_pipe_format_to_mesa_format(enum pipe_format format) return MESA_FORMAT_R_SNORM16; case PIPE_FORMAT_R16G16_SNORM: return MESA_FORMAT_RG_SNORM16; + case PIPE_FORMAT_R16G16B16_SNORM: + return MESA_FORMAT_RGB_SNORM16; case PIPE_FORMAT_R16G16B16A16_SNORM: return MESA_FORMAT_RGBA_SNORM16;