Lines Matching defs:dst

1400     struct NineSurface9 *dst = NineSurface9(pDestinationSurface);
1415 user_assert(dst && src, D3DERR_INVALIDCALL);
1417 user_assert(dst->base.pool == D3DPOOL_DEFAULT, D3DERR_INVALIDCALL);
1420 user_assert(dst->desc.MultiSampleType == D3DMULTISAMPLE_NONE, D3DERR_INVALIDCALL);
1424 user_assert(!dst->lock_count, D3DERR_INVALIDCALL);
1426 user_assert(dst->desc.Format == src->desc.Format, D3DERR_INVALIDCALL);
1427 user_assert(!depth_stencil_format(dst->desc.Format), D3DERR_INVALIDCALL);
1455 user_assert(destRect.right <= dst->desc.Width &&
1456 destRect.bottom <= dst->desc.Height,
1459 if (compressed_format(dst->desc.Format)) {
1460 const unsigned w = util_format_get_blockwidth(dst->base.info.format);
1461 const unsigned h = util_format_get_blockheight(dst->base.info.format);
1473 copy_width == dst->desc.Width &&
1475 copy_height == dst->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.
1520 * than dst. For the case where dst bigger, wine doesn't test if a stretch is applied
1528 * . First level copied -> the first level such that src is smaller or equal to dst first level
1551 struct NineTexture9 *dst = NineTexture9(dstb);
1562 fit_rect_format_inclusive(dst->base.base.info.format,
1564 dst->surfaces[l]->desc.Width,
1565 dst->surfaces[l]->desc.Height);
1566 NineSurface9_CopyMemToDefault(dst->surfaces[l],
1575 struct NineCubeTexture9 *dst = NineCubeTexture9(dstb);
1589 fit_rect_format_inclusive(dst->base.base.info.format,
1591 dst->surfaces[l * 6 + z]->desc.Width,
1592 dst->surfaces[l * 6 + z]->desc.Height);
1593 NineSurface9_CopyMemToDefault(dst->surfaces[l * 6 + z],
1604 struct NineVolumeTexture9 *dst = NineVolumeTexture9(dstb);
1610 NineVolume9_CopyMemToDefault(dst->volumes[l],
1630 struct NineSurface9 *dst = NineSurface9(pDestSurface);
1638 user_assert(dst->desc.Pool == D3DPOOL_SYSTEMMEM, D3DERR_INVALIDCALL);
1641 user_assert(dst->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);
1649 NineSurface9_CopyDefaultToMem(dst, src);
1678 struct NineSurface9 *dst = NineSurface9(pDestSurface);
1697 user_assert(dst->base.pool == D3DPOOL_DEFAULT &&
1700 dst_res = NineSurface9_GetResource(dst);
1712 pDestRect->right == dst->desc.Width &&
1713 pDestRect->bottom == dst->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,
1737 blit.dst.resource = dst_res;
1738 blit.dst.level = dst->level;
1739 blit.dst.box.z = dst->layer;
1740 blit.dst.box.depth = 1;
1741 blit.dst.format = dst_res->format;
1745 blit.dst.box.x = pDestRect->right;
1746 blit.dst.box.width = pDestRect->left - pDestRect->right;
1748 blit.dst.box.x = pDestRect->left;
1749 blit.dst.box.width = pDestRect->right - pDestRect->left;
1753 blit.dst.box.y = pDestRect->bottom;
1754 blit.dst.box.height = pDestRect->top - pDestRect->bottom;
1756 blit.dst.box.y = pDestRect->top;
1757 blit.dst.box.height = pDestRect->bottom - pDestRect->top;
1760 blit.dst.box.x = 0;
1761 blit.dst.box.y = 0;
1762 blit.dst.box.width = dst->desc.Width;
1763 blit.dst.box.height = dst->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) {
1799 blit.dst.box.width = -blit.dst.box.width;
1802 if (blit.dst.box.height < 0 && blit.src.box.height < 0) {
1803 blit.dst.box.height = -blit.dst.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);
1812 !NineSurface9_IsOffscreenPlain(dst), D3DERR_INVALIDCALL);
1813 user_assert(!NineSurface9_IsOffscreenPlain(dst) ||
1815 user_assert(NineSurface9_IsOffscreenPlain(dst) ||
1816 dst->desc.Usage & (D3DUSAGE_RENDERTARGET | D3DUSAGE_DEPTHSTENCIL),
1819 (!util_format_is_compressed(dst->base.info.format) &&
1823 user_warn(src == dst &&
1824 u_box_test_intersection_2d(&blit.src.box, &blit.dst.box));
1831 xy = u_box_clip_2d(&box, &blit.dst.box,
1832 dst->desc.Width, dst->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) {
1855 nine_context_blit(This, (struct NineUnknown *)dst,
1858 assert(blit.dst.box.x >= 0 && blit.dst.box.y >= 0 &&
1860 blit.dst.box.x + blit.dst.box.width <= dst->desc.Width &&
1862 blit.dst.box.y + blit.dst.box.height <= dst->desc.Height &&
1866 nine_context_resource_copy_region(This, (struct NineUnknown *)dst,
1868 blit.dst.resource, blit.dst.level,
1869 &blit.dst.box,
1875 NineSurface9_MarkContainerDirty(dst);
2457 struct nine_state *dst;
2481 dst = &nsb->state;
2483 dst->changed.group = NINE_STATE_SAMPLER;
2486 dst->changed.group |=
2491 memcpy(dst->changed.rs,
2492 nine_render_states_vertex, sizeof(dst->changed.rs));
2493 nine_ranges_insert(&dst->changed.vs_const_f, 0, This->may_swvp ? NINE_MAX_CONST_F_SWVP : This->max_vs_const_f,
2495 nine_ranges_insert(&dst->changed.vs_const_i, 0, This->may_swvp ? NINE_MAX_CONST_I_SWVP : NINE_MAX_CONST_I,
2497 nine_ranges_insert(&dst->changed.vs_const_b, 0, This->may_swvp ? NINE_MAX_CONST_B_SWVP : NINE_MAX_CONST_B,
2500 dst->changed.sampler[s] |= 1 << D3DSAMP_DMAPOFFSET;
2502 dst->ff.num_lights = This->state.ff.num_lights;
2506 dst->ff.light = CALLOC(This->state.ff.num_lights,
2508 if (!dst->ff.light) {
2515 dst->changed.group |=
2517 memcpy(dst->changed.rs,
2518 nine_render_states_pixel, sizeof(dst->changed.rs));
2519 nine_ranges_insert(&dst->changed.ps_const_f, 0, This->max_ps_const_f,
2521 dst->changed.ps_const_i = 0xffff;
2522 dst->changed.ps_const_b = 0xffff;
2524 dst->changed.sampler[s] |= 0x1ffe;
2526 dst->ff.changed.tex_stage[s][0] |= 0xffffffff;
2527 dst->ff.changed.tex_stage[s][1] |= 0xffffffff;
2531 dst->changed.group |=
2537 memset(dst->changed.rs, ~0, (D3DRS_COUNT / 32) * sizeof(uint32_t));
2538 dst->changed.rs[D3DRS_LAST / 32] |= (1 << (D3DRS_COUNT % 32)) - 1;
2539 dst->changed.vtxbuf = (1ULL << This->caps.MaxStreams) - 1;
2540 dst->changed.stream_freq = dst->changed.vtxbuf;
2541 dst->changed.ucp = (1 << PIPE_MAX_CLIP_PLANES) - 1;
2542 dst->changed.texture = (1 << NINE_MAX_SAMPLERS) - 1;
2545 * dst->ff.changed.transform[0] = 0x00FF000C;
2546 * dst->ff.changed.transform[D3DTS_WORLD / 32] |= 1 << (D3DTS_WORLD % 32);
2550 dst->ff.changed.transform[0] = 0x00FF000C;
2552 dst->ff.changed.transform[8+s] = ~0;
3218 struct NineVertexBuffer9 *dst = NineVertexBuffer9(pDestBuffer);
3248 user_assert(vdecl || (vs->byte_code.version < 0x30 && dst->desc.FVF),
3251 DWORD FVF = dst->desc.FVF;
3265 * if not set, everything from src will be used, and dst
3334 dst, DestIndex, VertexCount,