[Intel-gfx] [PATCHv3] drm/i915: Support Async Flip on Linear buffers
Ville Syrjälä
ville.syrjala at linux.intel.com
Tue Aug 23 12:57:04 UTC 2022
On Mon, Jul 04, 2022 at 09:45:48PM +0530, Arun R Murthy wrote:
> Intel Gen do support Async Flip is supported on linear buffers. Since we
> didn't had a use case, it was not enabled. Now that as part of hybrid
> graphics for unsupported hardware pixel formats, its being converted to
> linear memory and then flipped, hence enabling!
> This patch enables support for async on linear buffer.
>
> v2: added use case
> v3: enabled async on linear for pre Gen 12 as well
I didn't think it went all the way back to gen9?
Also we still don't seem to have any tests for this stuff...
>
> Signed-off-by: Arun R Murthy <arun.r.murthy at intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_display.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
> index a0f84cbe974f..99ad67af74e3 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.c
> +++ b/drivers/gpu/drm/i915/display/intel_display.c
> @@ -6614,6 +6614,7 @@ static int intel_async_flip_check_hw(struct intel_atomic_state *state, struct in
> * this selectively if required.
> */
> switch (new_plane_state->hw.fb->modifier) {
> + case DRM_FORMAT_MOD_LINEAR:
> case I915_FORMAT_MOD_X_TILED:
> case I915_FORMAT_MOD_Y_TILED:
> case I915_FORMAT_MOD_Yf_TILED:
> --
> 2.25.1
--
Ville Syrjälä
Intel
More information about the Intel-gfx
mailing list