Skip to content

Commit

Permalink
[Media Common] Enable Wa to disable object capture for DG1
Browse files Browse the repository at this point in the history
This Wa is needed for using DG1 with the upstream i915 kernel.

Partially fixes:
#1415 (comment)

The other part needs to be fixed on KMD side by disabling
HCP_POWERGATE and MFXVDENC_POWERGATE for DG1. Unlike TGLx,
DG1 doesn't support sub-pipe PG and setting these bits will
cause HEVC and VP9 decoding failure.

See also https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13381

Signed-off-by: nyanmisaka <[email protected]>
  • Loading branch information
nyanmisaka committed Dec 19, 2024
1 parent 949d590 commit 620a0b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions media_driver/linux/gen12/ddi/media_sku_wa_g12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,9 @@ static bool InitDG1MediaWa(struct GfxDeviceInfo *devInfo,

/* Enable VPP copy */
MEDIA_WR_WA(waTable, WaEnableVPPCopy, 1);

MEDIA_WR_WA(waTable, WaDisableSetObjectCapture, 1);

return true;
}

Expand Down

0 comments on commit 620a0b7

Please sign in to comment.