From: Marek Olšák Date: Sun, 1 Jan 2012 12:05:16 +0000 (+0100) Subject: u_vbuf: remove the workaround for half floats and translate X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fb0aa34fab77fe8a7fc3253d5ecf635ce37a21c7;p=mesa.git u_vbuf: remove the workaround for half floats and translate --- 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];