Skip to content

Commit 3d94361

Browse files
matt-auldickle
authored andcommitted
drm/i915/gtt: remove px_page
Entries will either be pointing to scratch or real PD, making the px_page(pd) check pointless. Also since there are no other users of px_page, just remove it. Signed-off-by: Matthew Auld <[email protected]> Cc: Chris Wilson <[email protected]> Cc: Michel Thierry <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Reviewed-by: Mika Kuoppala <[email protected]> Signed-off-by: Chris Wilson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent f6844a8 commit 3d94361

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

drivers/gpu/drm/i915/i915_gem_gtt.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,9 +1251,6 @@ static void gen8_free_page_tables(struct i915_address_space *vm,
12511251
{
12521252
int i;
12531253

1254-
if (!px_page(pd))
1255-
return;
1256-
12571254
for (i = 0; i < I915_PDES; i++) {
12581255
if (pd->page_table[i] != vm->scratch_pt)
12591256
free_pt(vm, pd->page_table[i]);

drivers/gpu/drm/i915/i915_gem_gtt.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ struct i915_page_dma {
229229
};
230230

231231
#define px_base(px) (&(px)->base)
232-
#define px_page(px) (px_base(px)->page)
233232
#define px_dma(px) (px_base(px)->daddr)
234233

235234
struct i915_page_table {

0 commit comments

Comments
 (0)