aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-09-06 16:30:26 -0700
committerEric Anholt <[email protected]>2019-11-07 19:43:41 +0000
commitcb9fefe1db40f8f1bc6efb9f9fe370e89cf54057 (patch)
tree0f35b79264fb78387e63fab56fac3b39b781d92f
parentdeafe4cc58746a3c46d16a9cf784819d49848dc6 (diff)
mesa/st: Add mapping of MESA_FORMAT_RGB_SNORM16 to gallium.
Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r--src/mesa/state_tracker/st_format.c4
1 files changed, 4 insertions, 0 deletions
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;