Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/xf86-video-nv/dist/src force software fallbac...



details:   https://anonhg.NetBSD.org/xsrc/rev/1cf104069178
branches:  trunk
changeset: 7130:1cf104069178
user:      macallan <macallan%NetBSD.org@localhost>
date:      Mon Aug 15 09:44:19 2022 +0000

description:
force software fallback for drawing rectangles into offscreen memory only
on NV_ARCH_40 and up

diffstat:

 external/mit/xf86-video-nv/dist/src/nv_exa.c |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r fa150d448a88 -r 1cf104069178 external/mit/xf86-video-nv/dist/src/nv_exa.c
--- a/external/mit/xf86-video-nv/dist/src/nv_exa.c      Fri Aug 12 08:18:29 2022 +0000
+++ b/external/mit/xf86-video-nv/dist/src/nv_exa.c      Mon Aug 15 09:44:19 2022 +0000
@@ -21,7 +21,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-/* $NetBSD: nv_exa.c,v 1.6 2021/08/22 23:11:58 macallan Exp $ */
+/* $NetBSD: nv_exa.c,v 1.7 2022/08/15 09:44:19 macallan Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -151,10 +151,13 @@
        /* 
         * XXX
         * on my 6800 Ultra the drawing engine stalls when drawing at least
-        * rectangles into off-screen memory. Draw them by software until I
-        * figure out what's going on
+        * some rectangles into off-screen memory. Draw them by software until
+        * I figure out what's going on
         */
-       if (off != 0) return FALSE;
+       if (pNv->Architecture >= NV_ARCH_40) {  
+               if (off != 0) return FALSE;
+       }
+
        NVSetRopSolid(pScrn, rop, planemask);
 
        pitch = exaGetPixmapPitch(pPixmap);



Home | Main Index | Thread Index | Old Index