summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_asm.c
diff options
context:
space:
mode:
authorFredrik Höglund <[email protected]>2013-11-07 21:49:43 +0100
committerFredrik Höglund <[email protected]>2013-11-07 23:51:44 +0100
commite420fb887f26cf275996f8c0f1a6659a4ed1238f (patch)
tree1078978fa8f29dd87b3dde330c5fac6d208a0777 /src/gallium/drivers/r600/r600_asm.c
parentbfc28e4affa1be012551a399f8936e0be5957b4d (diff)
r600g: Add support for PIPE_FORMAT_R11G11B10_FLOAT vertex elements
Reviewed-by: Dave Airlie <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_asm.c')
-rw-r--r--src/gallium/drivers/r600/r600_asm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index 3cd14fc8291..86f79e209b2 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -2134,6 +2134,12 @@ void r600_vertex_data_type(enum pipe_format pformat,
*format_comp = 0;
*endian = ENDIAN_NONE;
+ if (pformat == PIPE_FORMAT_R11G11B10_FLOAT) {
+ *format = FMT_10_11_11_FLOAT;
+ *endian = r600_endian_swap(32);
+ return;
+ }
+
desc = util_format_description(pformat);
if (desc->layout != UTIL_FORMAT_LAYOUT_PLAIN) {
goto out_unknown;