From fb0aa34fab77fe8a7fc3253d5ecf635ce37a21c7 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 1 Jan 2012 13:05:16 +0100 Subject: u_vbuf: remove the workaround for half floats and translate --- src/gallium/auxiliary/util/u_vbuf.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'src/gallium') 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]; -- cgit v1.2.3