From 41a785b09c4218670ef34f62bd409a3b38edbd61 Mon Sep 17 00:00:00 2001 From: Samuel Iglesias Gonsalvez Date: Fri, 10 Oct 2014 13:06:36 +0200 Subject: 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 --- src/mesa/main/pack_tmp.h | 75 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 74 insertions(+), 1 deletion(-) (limited to 'src/mesa/main/pack_tmp.h') 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