[igt-dev] [PATCH i-g-t 3/4] lib/igt_fb: fix tiling and blitter to require intel instead of i915 device
Modem, Bhanuprakash
bhanuprakash.modem at intel.com
Thu Jun 29 05:13:31 UTC 2023
On Wed-28-06-2023 11:28 pm, Juha-Pekka Heikkila wrote:
> As per introduction of xe driver change device requirements when
> using blitter or x- or 4-tile.
>
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
> ---
> lib/igt_fb.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/lib/igt_fb.c b/lib/igt_fb.c
> index 597f926d9..c1029246e 100644
> --- a/lib/igt_fb.c
> +++ b/lib/igt_fb.c
> @@ -447,7 +447,7 @@ void igt_get_fb_tile_size(int fd, uint64_t modifier, int fb_bpp,
> *height_ret = 1;
> break;
> case I915_FORMAT_MOD_X_TILED:
> - igt_require_i915(fd);
> + igt_require_intel(fd);
> if (intel_display_ver(intel_get_drm_devid(fd)) == 2) {
> *width_ret = 128;
> *height_ret = 16;
> @@ -468,7 +468,7 @@ void igt_get_fb_tile_size(int fd, uint64_t modifier, int fb_bpp,
> case I915_FORMAT_MOD_4_TILED_DG2_RC_CCS:
> case I915_FORMAT_MOD_4_TILED_DG2_MC_CCS:
> case I915_FORMAT_MOD_4_TILED_DG2_RC_CCS_CC:
> - igt_require_i915(fd);
> + igt_require_intel(fd);
> if (intel_display_ver(intel_get_drm_devid(fd)) == 2) {
> *width_ret = 128;
> *height_ret = 16;
> @@ -2490,7 +2490,7 @@ static bool block_copy_ok(const struct igt_fb *fb)
>
> static bool blitter_ok(const struct igt_fb *fb)
> {
> - if (!is_i915_device(fb->fd))
> + if (!is_intel_device(fb->fd))
> return false;
>
> if ((is_ccs_modifier(fb->modifier) &&
More information about the igt-dev
mailing list