Fix kassert: npdp may be GEN8_LEGACY_PDPS exactly.

Tripped over by msaitoh, our first Broadwell user, apparently.
This commit is contained in:
riastradh 2015-05-20 11:29:45 +00:00
parent 44fa683b9a
commit 66cbe3320e
1 changed files with 1 additions and 1 deletions

View File

@ -575,7 +575,7 @@ gen8_ppgtt_allocate_page_directories(struct i915_hw_ppgtt *ppgtt,
ppgtt->u.gen8->npdp = npdp;
KASSERT(nsegs < GEN8_LEGACY_PDPS);
KASSERT(nsegs <= GEN8_LEGACY_PDPS);
CTASSERT(GEN8_LEGACY_PDPS == __arraycount(ppgtt->u.gen8->pd_segs));
/* XXX errno NetBSD->Linux */