summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vdpau/bitmap.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2012-02-26 12:40:47 +0100
committerChristian König <[email protected]>2012-03-02 13:14:22 +0100
commit494e0025d995fb2cab04474d13880ee438b0c868 (patch)
treee0f2db9d28c2c3deaeda3a48cbd646811b3aaf64 /src/gallium/state_trackers/vdpau/bitmap.c
parenta0571b135ef2fdc9ade78b476e0af154f0f8a1f6 (diff)
st/vdpau: implement OutputSurfacePutBitsNative
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/vdpau/bitmap.c')
-rw-r--r--src/gallium/state_trackers/vdpau/bitmap.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/gallium/state_trackers/vdpau/bitmap.c b/src/gallium/state_trackers/vdpau/bitmap.c
index abd745ae1c6..a02bb941ff4 100644
--- a/src/gallium/state_trackers/vdpau/bitmap.c
+++ b/src/gallium/state_trackers/vdpau/bitmap.c
@@ -179,20 +179,7 @@ vlVdpBitmapSurfacePutBitsNative(VdpBitmapSurface surface,
vlVdpResolveDelayedRendering(vlsurface->device, NULL, NULL);
- dst_box.x = 0;
- dst_box.y = 0;
- dst_box.z = 0;
- dst_box.width = vlsurface->sampler_view->texture->width0;
- dst_box.height = vlsurface->sampler_view->texture->height0;
- dst_box.depth = 1;
-
- if (destination_rect) {
- dst_box.x = MIN2(destination_rect->x0, destination_rect->x1);
- dst_box.y = MIN2(destination_rect->y0, destination_rect->y1);
- dst_box.width = abs(destination_rect->x1 - destination_rect->x0);
- dst_box.height = abs(destination_rect->y1 - destination_rect->y0);
- }
-
+ dst_box = RectToPipeBox(destination_rect, vlsurface->sampler_view->texture);
pipe->transfer_inline_write(pipe, vlsurface->sampler_view->texture, 0,
PIPE_TRANSFER_WRITE, &dst_box, *source_data,
*source_pitches, 0);