glamor: Fallback to software fb when repeat is needed.
Need to be fixed latter. We should not need any fallback here. But currently, the implementation for repeating tiling is broken. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
parent
bd0ea43f39
commit
b4f265c7f9
|
@ -98,10 +98,14 @@ glamor_tile(PixmapPtr pixmap, PixmapPtr tile,
|
||||||
glamor_pixmap_private *src_pixmap_priv;
|
glamor_pixmap_private *src_pixmap_priv;
|
||||||
glamor_pixmap_private *dst_pixmap_priv;
|
glamor_pixmap_private *dst_pixmap_priv;
|
||||||
|
|
||||||
|
|
||||||
src_pixmap_priv = glamor_get_pixmap_private(tile);
|
src_pixmap_priv = glamor_get_pixmap_private(tile);
|
||||||
dst_pixmap_priv = glamor_get_pixmap_private(pixmap);
|
dst_pixmap_priv = glamor_get_pixmap_private(pixmap);
|
||||||
|
|
||||||
|
if (((tile_x != 0) && (tile_x + width > tile->drawable.width))
|
||||||
|
|| ((tile_y != 0) && (tile_y + height > tile->drawable.height))) {
|
||||||
|
ErrorF("tile_x = %d tile_y = %d \n", tile_x, tile_y);
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
if (glamor_priv->tile_prog == 0) {
|
if (glamor_priv->tile_prog == 0) {
|
||||||
glamor_fallback("Tiling unsupported\n");
|
glamor_fallback("Tiling unsupported\n");
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user