xf86-video-mach64: Branch 'master'

Adam Jackson ajax at kemper.freedesktop.org
Thu Feb 16 16:18:56 UTC 2017


 src/ativalid.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5ae03dc9f4564de54df6427ed7e6e80e75a4179e
Author: Adam Jackson <ajax at redhat.com>
Date:   Thu Feb 16 11:18:10 2017 -0500

    D'oh, fix the previous commit
    
    These limits are against mode->[HV]Total, not Display.
    
    Signed-off-by: Adam Jackson <ajax at redhat.com>

diff --git a/src/ativalid.c b/src/ativalid.c
index 612bfe5..0a6d54a 100644
--- a/src/ativalid.c
+++ b/src/ativalid.c
@@ -62,11 +62,11 @@ ATIValidMode
             /* CRTC_H_TOTAL is one bit narrower */
             maxHValue >>= 1;
         }
-        if (pMode->HDisplay > maxHValue)
+        if (pMode->HTotal > maxHValue)
             return MODE_BAD_HVALUE;
 
         maxVValue = MaxBits(CRTC_V_TOTAL) + 1;
-        if (pMode->VDisplay > maxVValue)
+        if (pMode->VTotal > maxVValue)
             return MODE_BAD_VVALUE;
     }
 


More information about the xorg-commit mailing list