use expected argument order for intel_check_blit_format

This commit is contained in:
Keith Whitwell 2006-02-24 16:52:06 +00:00
parent 9826d83439
commit a12063a540
2 changed files with 8 additions and 3 deletions

View file

@ -25,6 +25,7 @@
*
**************************************************************************/
#include "enums.h"
#include "swrast/swrast.h"
#include "intel_context.h"
@ -53,7 +54,7 @@ GLboolean intel_check_blit_fragment_ops( const GLcontext *ctx )
* RGB565.
*/
GLboolean intel_check_blit_format( struct intel_region *region,
GLenum type, GLenum format )
GLenum format, GLenum type )
{
if (region->cpp == 4 &&
type == GL_UNSIGNED_INT_8_8_8_8_REV &&
@ -67,7 +68,11 @@ GLboolean intel_check_blit_format( struct intel_region *region,
return GL_TRUE;
}
fprintf(stderr, "%s: request doesn't match pixel format\n", __FUNCTION__);
fprintf(stderr, "%s: bad format for blit (cpp %d, type %s format %s)\n",
__FUNCTION__, region->cpp,
_mesa_lookup_enum_by_nr(type),
_mesa_lookup_enum_by_nr(format));
return GL_FALSE;
}

View file

@ -35,7 +35,7 @@ void intelInitPixelFuncs( struct dd_function_table *functions );
GLboolean intel_check_blit_fragment_ops( const GLcontext *ctx );
GLboolean intel_check_blit_format( struct intel_region *region,
GLenum type, GLenum format );
GLenum format, GLenum type );
GLboolean intel_clip_to_framebuffer( GLcontext *ctx,