Lines Matching defs:src

1401     struct NineSurface9 *src = NineSurface9(pSourceSurface);
1415 user_assert(dst && src, D3DERR_INVALIDCALL);
1418 user_assert(src->base.pool == D3DPOOL_SYSTEMMEM, D3DERR_INVALIDCALL);
1421 user_assert(src->desc.MultiSampleType == D3DMULTISAMPLE_NONE, D3DERR_INVALIDCALL);
1423 user_assert(!src->lock_count, D3DERR_INVALIDCALL);
1426 user_assert(dst->desc.Format == src->desc.Format, D3DERR_INVALIDCALL);
1435 pSourceRect->right <= src->desc.Width &&
1438 pSourceRect->bottom <= src->desc.Height,
1441 copy_width = src->desc.Width;
1442 copy_height = src->desc.Height;
1472 if (!(copy_width == src->desc.Width &&
1474 copy_height == src->desc.Height &&
1481 NineSurface9_CopyMemToDefault(dst, src, pDestPoint, pSourceRect);
1511 * . Fewer src levels than dst levels (if the opposite, only matching levels
1516 * However driver can expect that the top dimension is greater for src than dst.
1519 * . 1 level, but size not matching => copy is done (and even crash if src bigger
1528 * . First level copied -> the first level such that src is smaller or equal to dst first level
1552 struct NineTexture9 *src = NineTexture9(srcb);
1554 if (src->dirty_rect.width == 0)
1557 pipe_box_to_rect(&rect, &src->dirty_rect);
1567 src->surfaces[m],
1572 u_box_origin_2d(0, 0, &src->dirty_rect);
1576 struct NineCubeTexture9 *src = NineCubeTexture9(srcb);
1581 if (src->dirty_rect[z].width == 0)
1584 pipe_box_to_rect(&rect, &src->dirty_rect[z]);
1594 src->surfaces[m * 6 + z],
1599 u_box_origin_2d(0, 0, &src->dirty_rect[z]);
1605 struct NineVolumeTexture9 *src = NineVolumeTexture9(srcb);
1607 if (src->dirty_box.width == 0)
1611 src->volumes[m], 0, 0, 0, NULL);
1612 u_box_3d(0, 0, 0, 0, 0, 0, &src->dirty_box);
1631 struct NineSurface9 *src = NineSurface9(pRenderTarget);
1639 user_assert(src->desc.Pool == D3DPOOL_DEFAULT, D3DERR_INVALIDCALL);
1642 user_assert(src->desc.MultiSampleType < 2, D3DERR_INVALIDCALL);
1644 user_assert(src->desc.Width == dst->desc.Width, D3DERR_INVALIDCALL);
1645 user_assert(src->desc.Height == dst->desc.Height, D3DERR_INVALIDCALL);
1647 user_assert(src->desc.Format != D3DFMT_NULL, D3DERR_INVALIDCALL);
1649 NineSurface9_CopyDefaultToMem(dst, src);
1679 struct NineSurface9 *src = NineSurface9(pSourceSurface);
1698 src->base.pool == D3DPOOL_DEFAULT, D3DERR_INVALIDCALL);
1701 src_res = NineSurface9_GetResource(src);
1707 pSourceRect->right == src->desc.Width &&
1708 pSourceRect->bottom == src->desc.Height), D3DERR_INVALIDCALL);
1715 (dst->desc.Width == src->desc.Width &&
1716 dst->desc.Height == src->desc.Height), D3DERR_INVALIDCALL);
1719 user_assert(!zs || dst->desc.Format == src->desc.Format,
1765 blit.src.resource = src_res;
1766 blit.src.level = src->level;
1767 blit.src.box.z = src->layer;
1768 blit.src.box.depth = 1;
1769 blit.src.format = src_res->format;
1772 blit.src.box.x = pSourceRect->right;
1773 blit.src.box.width = pSourceRect->left - pSourceRect->right;
1775 blit.src.box.x = pSourceRect->left;
1776 blit.src.box.width = pSourceRect->right - pSourceRect->left;
1779 blit.src.box.y = pSourceRect->bottom;
1780 blit.src.box.height = pSourceRect->top - pSourceRect->bottom;
1782 blit.src.box.y = pSourceRect->top;
1783 blit.src.box.height = pSourceRect->bottom - pSourceRect->top;
1786 blit.src.box.x = flip_x ? src->desc.Width : 0;
1787 blit.src.box.y = flip_y ? src->desc.Height : 0;
1788 blit.src.box.width = flip_x ? -src->desc.Width : src->desc.Width;
1789 blit.src.box.height = flip_y ? -src->desc.Height : src->desc.Height;
1797 /* If both of a src and dst dimension are negative, flip them. */
1798 if (blit.dst.box.width < 0 && blit.src.box.width < 0) {
1800 blit.src.box.width = -blit.src.box.width;
1802 if (blit.dst.box.height < 0 && blit.src.box.height < 0) {
1804 blit.src.box.height = -blit.src.box.height;
1807 blit.dst.box.width != blit.src.box.width ||
1808 blit.dst.box.height != blit.src.box.height;
1810 user_assert(!scaled || dst != src, D3DERR_INVALIDCALL);
1814 NineSurface9_IsOffscreenPlain(src), D3DERR_INVALIDCALL);
1820 !util_format_is_compressed(src->base.info.format)),
1823 user_warn(src == dst &&
1824 u_box_test_intersection_2d(&blit.src.box, &blit.dst.box));
1836 xy = u_box_clip_2d(&box, &blit.src.box,
1837 src->desc.Width, src->desc.Height);
1841 ms = (dst->desc.MultiSampleType != src->desc.MultiSampleType) ||
1842 (dst->desc.MultiSampleQuality != src->desc.MultiSampleQuality);
1844 if (clamped || scaled || (blit.dst.format != blit.src.format) || ms) {
1856 (struct NineUnknown *)src, &blit);
1859 blit.src.box.x >= 0 && blit.src.box.y >= 0 &&
1861 blit.src.box.x + blit.src.box.width <= src->desc.Width &&
1863 blit.src.box.y + blit.src.box.height <= src->desc.Height);
1867 (struct NineUnknown *)src,
1870 blit.src.resource, blit.src.level,
1871 &blit.src.box);
3265 * if not set, everything from src will be used, and dst