mesa/pack: refactor _mesa_pack_rgba_span_float()
Use autogenerated format pack functions and take advantage of some macros to reduce source code, facilitating its maintenance. Unfortunately, dstType == GL_UNSIGNED_SHORT cannot simplified like the others, so keep it as it is. Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
This commit is contained in:
committed by
Iago Toral Quiroga
parent
41a785b09c
commit
ba5418c60d
+152
-1166
File diff suppressed because it is too large
Load Diff
@@ -26,6 +26,7 @@ FN_NAME(struct gl_context *ctx,
|
||||
DST_TYPE *dst,
|
||||
GLenum dstFormat,
|
||||
SRC_TYPE rgba[][4],
|
||||
GLfloat *luminance,
|
||||
int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
Reference in New Issue
Block a user