summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-01-01 13:05:16 +0100
committerMarek Olšák <[email protected]>2012-01-05 18:29:11 +0100
commitfb0aa34fab77fe8a7fc3253d5ecf635ce37a21c7 (patch)
tree9c8cca2786b7eafe705b49c93ae63d8344a1c374 /src/gallium/auxiliary/util
parent1acef6a7465e8c54dc10a43c9e7278d4506c1d5e (diff)
u_vbuf: remove the workaround for half floats and translate
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r--src/gallium/auxiliary/util/u_vbuf.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/gallium/auxiliary/util/u_vbuf.c b/src/gallium/auxiliary/util/u_vbuf.c
index 5b0e26e30db..b6681978391 100644
--- a/src/gallium/auxiliary/util/u_vbuf.c
+++ b/src/gallium/auxiliary/util/u_vbuf.c
@@ -218,26 +218,7 @@ u_vbuf_translate_begin(struct u_vbuf_priv *mgr,
continue;
}
- /* Workaround for translate: output floats instead of halfs. */
- switch (output_format) {
- case PIPE_FORMAT_R16_FLOAT:
- output_format = PIPE_FORMAT_R32_FLOAT;
- output_format_size = 4;
- break;
- case PIPE_FORMAT_R16G16_FLOAT:
- output_format = PIPE_FORMAT_R32G32_FLOAT;
- output_format_size = 8;
- break;
- case PIPE_FORMAT_R16G16B16_FLOAT:
- output_format = PIPE_FORMAT_R32G32B32_FLOAT;
- output_format_size = 12;
- break;
- case PIPE_FORMAT_R16G16B16A16_FLOAT:
- output_format = PIPE_FORMAT_R32G32B32A32_FLOAT;
- output_format_size = 16;
- break;
- default:;
- }
+ assert(translate_is_output_format_supported(output_format));
/* Add this vertex element. */
te = &key.element[key.nr_elements];