Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915/gem i915: Set sg_page_si...



details:   https://anonhg.NetBSD.org/src/rev/460bf508d02c
branches:  trunk
changeset: 1028754:460bf508d02c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:57:03 2021 +0000

description:
i915: Set sg_page_sizes in the #ifdef NetBSD code.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_shmem.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 6391be6da958 -r 460bf508d02c sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_shmem.c
--- a/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_shmem.c  Sun Dec 19 11:56:52 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_shmem.c  Sun Dec 19 11:57:03 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_gem_shmem.c,v 1.8 2021/12/19 11:33:49 riastradh Exp $     */
+/*     $NetBSD: i915_gem_shmem.c,v 1.9 2021/12/19 11:57:03 riastradh Exp $     */
 
 /*
  * SPDX-License-Identifier: MIT
@@ -7,7 +7,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_gem_shmem.c,v 1.8 2021/12/19 11:33:49 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_gem_shmem.c,v 1.9 2021/12/19 11:57:03 riastradh Exp $");
 
 #include <linux/pagevec.h>
 #include <linux/swap.h>
@@ -156,6 +156,7 @@
                __USE(last_pfn);
                KASSERT(st->nents == i);
                sg->sg_pgs[st->nents++] = page;
+               sg_page_sizes |= PAGE_SIZE; /* XXX compress contiguous pages */
 #else
                if (!i ||
                    sg->length >= max_segment ||



Home | Main Index | Thread Index | Old Index