Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/i915drm Shift the GTT size by...
details: https://anonhg.NetBSD.org/src/rev/1a6dc0a1463b
branches: riastradh-drm2
changeset: 788532:1a6dc0a1463b
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Sep 08 15:57:01 2013 +0000
description:
Shift the GTT size by twenty only once.
diffstat:
sys/external/bsd/drm2/i915drm/i915_gem_gtt.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 9d0ab709723f -r 1a6dc0a1463b sys/external/bsd/drm2/i915drm/i915_gem_gtt.c
--- a/sys/external/bsd/drm2/i915drm/i915_gem_gtt.c Sun Sep 08 15:56:32 2013 +0000
+++ b/sys/external/bsd/drm2/i915drm/i915_gem_gtt.c Sun Sep 08 15:57:01 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i915_gem_gtt.c,v 1.1.2.1 2013/09/08 15:52:20 riastradh Exp $ */
+/* $NetBSD: i915_gem_gtt.c,v 1.1.2.2 2013/09/08 15:57:01 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_gem_gtt.c,v 1.1.2.1 2013/09/08 15:52:20 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_gem_gtt.c,v 1.1.2.2 2013/09/08 15:57:01 riastradh Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -137,7 +137,7 @@
}
/* GGMS: GTT Graphics Memory Size. */
- ggms = __SHIFTOUT(snb_gmch_ctl, SNB_GMCH_GGMS) << 20;
+ ggms = __SHIFTOUT(snb_gmch_ctl, SNB_GMCH_GGMS);
gtt->gtt_total_entries = (ggms << 20) / sizeof(gtt_pte_t);
gtt->gtt_mappable_entries = (dev->bus_maps[2].bm_size >> PAGE_SHIFT);
Home |
Main Index |
Thread Index |
Old Index