diff --git a/src/mesa/drivers/dri/i915/intel_pixel.c b/src/mesa/drivers/dri/i915/intel_pixel.c index 83fa086ad29..0ad78353956 100644 --- a/src/mesa/drivers/dri/i915/intel_pixel.c +++ b/src/mesa/drivers/dri/i915/intel_pixel.c @@ -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; } diff --git a/src/mesa/drivers/dri/i915/intel_pixel.h b/src/mesa/drivers/dri/i915/intel_pixel.h index 21c1a3ec000..01c0a462427 100644 --- a/src/mesa/drivers/dri/i915/intel_pixel.h +++ b/src/mesa/drivers/dri/i915/intel_pixel.h @@ -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,