summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2010-02-12 14:55:56 +0100
committerMichal Krol <michal@vmware.com>2010-02-12 14:55:56 +0100
commite670b358b348b64c7c7aa8d91c8cb28db6834dd2 (patch)
tree02cb4e4d3fb3abd2a3ffa48f2a2560fbad5f77bb
parent69dd99ba863574258805b3e05787d5bdef314aa5 (diff)
gallium: Add R32/R32G32_1111_FLOAT formats.
Unlike other formats, these expand into (1,1,1,1) vector, not (0,0,0,1).
-rw-r--r--src/gallium/auxiliary/util/u_debug.c2
-rw-r--r--src/gallium/include/pipe/p_format.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_debug.c b/src/gallium/auxiliary/util/u_debug.c
index 4821b8a143..7e1c5a9b03 100644
--- a/src/gallium/auxiliary/util/u_debug.c
+++ b/src/gallium/auxiliary/util/u_debug.c
@@ -396,6 +396,8 @@ static const struct debug_named_value pipe_format_names[] = {
DEBUG_NAMED_VALUE(PIPE_FORMAT_DXT1_SRGBA),
DEBUG_NAMED_VALUE(PIPE_FORMAT_DXT3_SRGBA),
DEBUG_NAMED_VALUE(PIPE_FORMAT_DXT5_SRGBA),
+ DEBUG_NAMED_VALUE(PIPE_FORMAT_R32_1111_FLOAT),
+ DEBUG_NAMED_VALUE(PIPE_FORMAT_R32G32_1111_FLOAT),
#endif
DEBUG_NAMED_VALUE_END
};
diff --git a/src/gallium/include/pipe/p_format.h b/src/gallium/include/pipe/p_format.h
index 2894e13e7d..e2beaa139c 100644
--- a/src/gallium/include/pipe/p_format.h
+++ b/src/gallium/include/pipe/p_format.h
@@ -162,6 +162,9 @@ enum pipe_format {
PIPE_FORMAT_DXT3_SRGBA = 108,
PIPE_FORMAT_DXT5_SRGBA = 109,
+ PIPE_FORMAT_R32_1111_FLOAT = 110,
+ PIPE_FORMAT_R32G32_1111_FLOAT = 111,
+
PIPE_FORMAT_COUNT
};