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 fill in PrepareAccess(...



details:   https://anonhg.NetBSD.org/xsrc/rev/a09dacafd56d
branches:  trunk
changeset: 9978:a09dacafd56d
user:      macallan <macallan%NetBSD.org@localhost>
date:      Mon Jul 16 16:30:04 2018 +0000

description:
fill in PrepareAccess() and FinishAcces() methods

diffstat:

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

diffs (42 lines):

diff -r 7f3677058370 -r a09dacafd56d external/mit/xf86-video-nv/dist/src/nv_exa.c
--- a/external/mit/xf86-video-nv/dist/src/nv_exa.c      Mon Jul 16 09:55:13 2018 +0000
+++ b/external/mit/xf86-video-nv/dist/src/nv_exa.c      Mon Jul 16 16:30:04 2018 +0000
@@ -21,7 +21,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-/* $NetBSD: nv_exa.c,v 1.2 2018/07/16 09:55:13 rjs Exp $ */
+/* $NetBSD: nv_exa.c,v 1.3 2018/07/16 16:30:04 macallan Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -238,6 +238,20 @@
        return TRUE;
 }
 
+static Bool
+NvPrepareAccess(PixmapPtr pPix, int index)
+{
+       ScrnInfoPtr pScrn = xf86Screens[pPix->drawable.pScreen->myNum];
+
+       NVSync(pScrn);
+       return TRUE;    
+}
+
+static void
+NvFinishAccess(PixmapPtr pPix, int index)
+{
+}
+
 Bool
 NvInitExa(ScreenPtr pScreen)
 {
@@ -309,5 +323,8 @@
         */
        pExa->UploadToScreen = NvUploadToScreen;
        pExa->DownloadFromScreen = NvDownloadFromScreen;
+       pExa->PrepareAccess = NvPrepareAccess;
+       pExa->FinishAccess = NvFinishAccess;
+
        return exaDriverInit(pScreen, pExa);
 }



Home | Main Index | Thread Index | Old Index