From: Samuel Iglesias Gonsalvez Date: Fri, 10 Oct 2014 11:06:36 +0000 (+0200) Subject: mesa/main/pack_tmp.h: Add float conversion support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=41a785b09c4218670ef34f62bd409a3b38edbd61;p=mesa.git mesa/main/pack_tmp.h: Add float conversion support We will use this in a later patch to refactor _mesa_pack_rgba_span_float. Signed-off-by: Samuel Iglesias Gonsalvez Reviewed-by: Jason Ekstrand --- diff --git a/src/mesa/main/pack_tmp.h b/src/mesa/main/pack_tmp.h index 0d4eb387d80..c6882db14fa 100644 --- a/src/mesa/main/pack_tmp.h +++ b/src/mesa/main/pack_tmp.h @@ -31,6 +31,79 @@ FN_NAME(struct gl_context *ctx, int i; switch (dstFormat) { +#ifdef FLOAT_SRC_CONVERT + case GL_RED: + for (i=0;i