The diff below might fix the corruption and/or artifacts that people
have reported seeing with the new Mesa in -current on older Intel
hardware.  And older Intel hardware here means more or less everything
before Sandy Bridge.


Index: agp_i810.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/agp_i810.c,v
retrieving revision 1.78
diff -u -p -r1.78 agp_i810.c
--- agp_i810.c  6 Jun 2013 16:14:26 -0000       1.78
+++ agp_i810.c  14 Nov 2013 15:49:11 -0000
@@ -754,6 +754,8 @@ agp_i810_bind_page(void *sc, bus_addr_t 
                        physical |= GEN6_PTE_CACHE_LLC;
                break;
        default:
+               if (flags & BUS_DMA_GTT_NOCACHE)
+                       physical |= INTEL_COHERENT;
                if (flags & BUS_DMA_COHERENT)
                        physical |= INTEL_COHERENT;
                break;

Reply via email to