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/i915drm Fix bogus GTT total size calcu...
details: https://anonhg.NetBSD.org/src/rev/2a4b483d6cfe
branches: trunk
changeset: 329548:2a4b483d6cfe
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed May 28 15:44:02 2014 +0000
description:
Fix bogus GTT total size calculation. Omit gtt_bsh for `agp' gtt.
diffstat:
sys/external/bsd/drm2/i915drm/i915_gem_gtt.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (29 lines):
diff -r 09e017d4c796 -r 2a4b483d6cfe sys/external/bsd/drm2/i915drm/i915_gem_gtt.c
--- a/sys/external/bsd/drm2/i915drm/i915_gem_gtt.c Wed May 28 15:34:32 2014 +0000
+++ b/sys/external/bsd/drm2/i915drm/i915_gem_gtt.c Wed May 28 15:44:02 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i915_gem_gtt.c,v 1.12 2014/05/23 23:02:47 riastradh Exp $ */
+/* $NetBSD: i915_gem_gtt.c,v 1.13 2014/05/28 15:44:02 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.12 2014/05/23 23:02:47 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_gem_gtt.c,v 1.13 2014/05/28 15:44:02 riastradh Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -405,9 +405,7 @@
gtt->gma_bus_addr = agp_i810_sc->as_apaddr;
gtt->gtt_mappable_entries = (agp_i810_sc->as_apsize >> AGP_PAGE_SHIFT);
gtt->stolen_size = (isc->stolen << AGP_PAGE_SHIFT);
- gtt->gtt_total_entries =
- (gtt->gtt_mappable_entries + (gtt->stolen_size >> AGP_PAGE_SHIFT));
- gtt->gtt_bsh = isc->gtt_bsh;
+ gtt->gtt_total_entries = isc->gtt_size/4;
product = PCI_PRODUCT(dev->pdev->pd_pa.pa_id);
if (((product == PCI_PRODUCT_INTEL_IRONLAKE_M_HB) ||
Home |
Main Index |
Thread Index |
Old Index