Commit ad67299f authored by Eric Anholt's avatar Eric Anholt Committed by Zhigang Gong

glamor: Provide more information about the operands to fallback composites.

parent 4811e428
......@@ -425,6 +425,27 @@ compatible_formats (CARD8 op, PicturePtr dst, PicturePtr src)
return 0;
}
static char
glamor_get_picture_location(PicturePtr picture)
{
if (picture == NULL)
return ' ';
if (picture->pDrawable == NULL) {
switch (picture->pSourcePict->type) {
case SourcePictTypeSolidFill:
return 'c';
case SourcePictTypeLinear:
return 'l';
case SourcePictTypeRadial:
return 'r';
default:
return '?';
}
}
return glamor_get_drawable_location(picture->pDrawable);
}
void
glamor_composite(CARD8 op,
PicturePtr source,
......@@ -627,7 +648,12 @@ glamor_composite(CARD8 op,
fail:
glamor_fallback("glamor_composite(): "
"from picts %p/%p to pict %p\n", source, mask, dest);
"from picts %p/%p(%c,%c) to pict %p (%c)\n",
source, mask,
glamor_get_picture_location(source),
glamor_get_picture_location(mask),
dest,
glamor_get_picture_location(dest));
glUseProgramObjectARB(0);
if (glamor_prepare_access(dest->pDrawable, GLAMOR_ACCESS_RW)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment