summaryrefslogtreecommitdiff
path: root/src/radeon_accel.c
diff options
context:
space:
mode:
authorVladimir Dergachev <volodya@mindspring.com>2004-12-12 20:42:29 +0000
committerVladimir Dergachev <volodya@mindspring.com>2004-12-12 20:42:29 +0000
commit8c1969f22fba2e1c9ed34d5ca77bee3a9f577640 (patch)
tree277a2dff6797e115007ee7993200049563f343ef /src/radeon_accel.c
parent8a9077bc70fd800983f138a224b95301992a2296 (diff)
Modified:
programs/Xserver/hw/xfree86/drivers/ati/radeon_render.c programs/Xserver/hw/xfree86/drivers/ati/radeon_accel.c Make DMA blitting code more robust.
Diffstat (limited to 'src/radeon_accel.c')
-rw-r--r--src/radeon_accel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/radeon_accel.c b/src/radeon_accel.c
index 028f2727..ac422571 100644
--- a/src/radeon_accel.c
+++ b/src/radeon_accel.c
@@ -712,6 +712,10 @@ RADEONHostDataBlitCopyPass(
unsigned int dstPitch,
unsigned int srcPitch
){
+
+ /* RADEONHostDataBlitCopy can return NULL ! */
+ if( (dst==NULL) || (src==NULL)) return;
+
if ( dstPitch == srcPitch )
{
memcpy( dst, src, hpass * dstPitch );