diff options
author | Arthur Huillet <arthur.huillet@free.fr> | 2007-07-27 16:28:48 +0200 |
---|---|---|
committer | Arthur Huillet <arthur.huillet@free.fr> | 2007-07-27 16:28:48 +0200 |
commit | 200c82634971b32bcc308b5e07c113048cf37aa4 (patch) | |
tree | 3485ef981517b7c5da1568c72fecaf616c2a76e3 | |
parent | 8544c0ce64780be1bb5f66550d9d6f1e3c87865c (diff) | |
download | xorg-driver-xf86-video-nouveau-200c82634971b32bcc308b5e07c113048cf37aa4.tar.gz |
Xv: gotos are evil
-rw-r--r-- | src/nv_video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nv_video.c b/src/nv_video.c index 047da6e..121f2e7 100644 --- a/src/nv_video.c +++ b/src/nv_video.c @@ -1165,6 +1165,7 @@ NVPutImage(ScrnInfoPtr pScrn, short src_x, short src_y, NVAllocRec * destination_buffer; + unsigned char * video_mem_destination; if ( pPriv->TT_mem_chunk[pPriv->currentHostBuffer] ) { @@ -1276,8 +1277,7 @@ NVPutImage(ScrnInfoPtr pScrn, short src_x, short src_y, } else { //GART is too small, we fallback on CPU copy for simplicity CPU_copy: - //xf86DrvMsg(0, X_INFO, "Fallback on CPU copy\n"); - unsigned char * video_mem_destination = pPriv->video_mem->map + (offset - (uint32_t)pPriv->video_mem->offset); + video_mem_destination = pPriv->video_mem->map + (offset - (uint32_t)pPriv->video_mem->offset); switch(id) { case FOURCC_YV12: |