File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
sys/external/bsd/drm2/dist/drm/i915/gt Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ static void gen8_ggtt_insert_entries(struct i915_address_space *vm,
254
254
bus_dmamap_t map = vma -> pages -> sgl [0 ].sg_dmamap ;
255
255
unsigned seg ;
256
256
unsigned pgno ;
257
- unsigned pgextra ;
257
+ unsigned pgend ;
258
258
#else
259
259
struct sgt_iter sgt_iter ;
260
260
gen8_pte_t __iomem * gtt_entries ;
@@ -278,16 +278,16 @@ static void gen8_ggtt_insert_entries(struct i915_address_space *vm,
278
278
KASSERT ((len % I915_GTT_PAGE_SIZE ) == 0 );
279
279
for (;
280
280
len >= I915_GTT_PAGE_SIZE ;
281
- addr += I915_GTT_PAGE_SIZE , len -= I915_GTT_PAGE_SIZE )
281
+ addr += I915_GTT_PAGE_SIZE , len -= I915_GTT_PAGE_SIZE ) {
282
282
gen8_set_pte (ggtt -> gsmt , ggtt -> gsmh , pgno ++ ,
283
283
pte_encode | addr );
284
284
}
285
285
KASSERT (len == 0 );
286
286
/* Fill the allocated but "unused" space beyond the end of the buffer */
287
287
KASSERT (pgno <= pgend );
288
- for (;pgno < pgend ;pgno ++ )
288
+ for (;pgno < pgend ;)
289
289
{
290
- gen8_set_pte (ggtt -> gsmt + pgno , vm -> scratch [0 ].encode );
290
+ gen8_set_pte (ggtt -> gsmt , ggtt -> gsmh , pgno ++ , vm -> scratch [0 ].encode );
291
291
}
292
292
}
293
293
#else
You can’t perform that action at this time.
0 commit comments