diff options
| author | Jani Nikula <[email protected]> | 2024-06-04 15:25:48 +0000 |
|---|---|---|
| committer | Jani Nikula <[email protected]> | 2024-06-07 08:28:48 +0000 |
| commit | 2501a0b68e8e5989eb782c8ac42eb4bd26713b10 (patch) | |
| tree | b696518e0c079012372afda8c4cd565cbb17aacc /drivers/gpu/drm/i915/gvt/cmd_parser.c | |
| parent | drm/i915: pass dev_priv explicitly to PIPE_FRMCOUNT_G4X (diff) | |
| download | kernel-2501a0b68e8e5989eb782c8ac42eb4bd26713b10.tar.gz kernel-2501a0b68e8e5989eb782c8ac42eb4bd26713b10.zip | |
drm/i915: pass dev_priv explicitly to PIPE_FLIPCOUNT_G4X
Avoid the implicit dev_priv local variable use, and pass dev_priv
explicitly to the PIPE_FLIPCOUNT_G4X register macro.
Reviewed-by: Rodrigo Vivi <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/c53a6f5cd97976f43fbae442034074d2ea9aac42.1717514638.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/cmd_parser.c')
| -rw-r--r-- | drivers/gpu/drm/i915/gvt/cmd_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gvt/cmd_parser.c b/drivers/gpu/drm/i915/gvt/cmd_parser.c index 9cdb53015d16..2f4c9c66b40b 100644 --- a/drivers/gpu/drm/i915/gvt/cmd_parser.c +++ b/drivers/gpu/drm/i915/gvt/cmd_parser.c @@ -1437,7 +1437,7 @@ static int gen8_update_plane_mmio_from_mi_display_flip( } if (info->plane == PLANE_PRIMARY) - vgpu_vreg_t(vgpu, PIPE_FLIPCOUNT_G4X(info->pipe))++; + vgpu_vreg_t(vgpu, PIPE_FLIPCOUNT_G4X(dev_priv, info->pipe))++; if (info->async_flip) intel_vgpu_trigger_virtual_event(vgpu, info->event); |
