summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-07-01 12:39:55 -0700
committerEric Anholt <[email protected]>2019-11-07 19:43:41 +0000
commit6196259d957cc7c3ea355b74649623ef7e582854 (patch)
tree4f1bf9968a56c4304d69839475d8c7e5191bdcf3 /src/mesa/state_tracker
parentcb9fefe1db40f8f1bc6efb9f9fe370e89cf54057 (diff)
gallium: Add defines for FXT1 texture compression.
This texture compression is exposed by 830 and 915, and to make MESA_FORMAT match PIPE_FORMAT defines I need a corresponding PIPE_FORMAT. v2: Set is_hand_written so we don't try to generate pack/unpack code. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_format.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
index cdfeac25df1..dd3e1b28804 100644
--- a/src/mesa/state_tracker/st_format.c
+++ b/src/mesa/state_tracker/st_format.c
@@ -638,6 +638,11 @@ st_mesa_format_to_pipe_format(const struct st_context *st,
case MESA_FORMAT_ATC_RGBA_INTERPOLATED:
return PIPE_FORMAT_ATC_RGBA_INTERPOLATED;
+ case MESA_FORMAT_RGB_FXT1:
+ return PIPE_FORMAT_FXT1_RGB;
+ case MESA_FORMAT_RGBA_FXT1:
+ return PIPE_FORMAT_FXT1_RGBA;
+
default:
if (0) {
debug_printf("%s(mesa_format=%s) -> NONE\n",
@@ -1164,6 +1169,11 @@ st_pipe_format_to_mesa_format(enum pipe_format format)
case PIPE_FORMAT_ATC_RGBA_INTERPOLATED:
return MESA_FORMAT_ATC_RGBA_INTERPOLATED;
+ case PIPE_FORMAT_FXT1_RGB:
+ return MESA_FORMAT_RGB_FXT1;
+ case PIPE_FORMAT_FXT1_RGBA:
+ return MESA_FORMAT_RGBA_FXT1;
+
default:
return MESA_FORMAT_NONE;
}