5 #include "nv04_2d_loops.h"
7 else if(dst
->bpps
== 1)
9 #include "nv04_2d_loops.h"
11 else if(dst
->bpps
== 2)
13 #include "nv04_2d_loops.h"
19 #ifdef SWIZZLED_COPY_LOOPS
27 T
* pdst
= (T
*)mdst
+ dswy
[iy
];
28 T
* psrc
= (T
*)msrc
+ sswy
[iy
];
31 assert((char*)&psrc
[sswx
[ix
] + 1] <= ((char*)src
->bo
->map
+ src
->bo
->size
));
32 assert((char*)&pdst
[dswx
[ix
] + 1] <= ((char*)dst
->bo
->map
+ dst
->bo
->size
));
33 pdst
[dswx
[ix
]] = psrc
[sswx
[ix
]];
39 T
* psrc
= (T
*)(msrc
+ ((dir
> 0) ? src
->y
: (src
->y
+ h
- 1)) * src
->pitch
) + src
->x
;
42 T
* pdst
= (T
*)mdst
+ dswy
[iy
];
45 assert((char*)&psrc
[ix
+ 1] <= ((char*)src
->bo
->map
+ src
->bo
->size
));
46 assert((char*)&pdst
[dswx
[ix
] + 1] <= ((char*)dst
->bo
->map
+ dst
->bo
->size
));
47 pdst
[dswx
[ix
]] = psrc
[ix
];
49 psrc
= (T
*)((char*)psrc
+ dir
* src
->pitch
);
55 T
* pdst
= (T
*)(mdst
+ ((dir
> 0) ? dst
->y
: (dst
->y
+ h
- 1)) * dst
->pitch
) + dst
->x
;
58 T
* psrc
= (T
*)msrc
+ sswy
[iy
];
61 assert((char*)&psrc
[sswx
[ix
] + 1] <= ((char*)src
->bo
->map
+ src
->bo
->size
));
62 assert((char*)&pdst
[ix
+ 1] <= ((char*)dst
->bo
->map
+ dst
->bo
->size
));
63 pdst
[ix
] = psrc
[sswx
[ix
]];
65 pdst
= (T
*)((char*)pdst
+ dir
* dst
->pitch
);