i915: prefer tile4 for non-linear scanout buffers

fix a typo in combinations affecting the legacy (no explicit modifiers)
allocation path.

BUG=b:279974016, b:243459433
TEST=glxgears in Crostini on MTL

Change-Id: I97d5a66effd82d8265bb2b977d623ee07bad5af0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/4492277
Commit-Queue: Yiwei Zhang <zzyiwei@chromium.org>
Tested-by: Ryan Neph <ryanneph@google.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Lina Versace <chadversary@chromium.org>
Reviewed-by: Matt Turner <msturner@google.com>
This commit is contained in:
Ryan Neph 2023-04-28 23:11:04 +00:00 committed by Chromeos LUCI
parent cf10ab71d8
commit 4deb5b8a05

2
i915.c
View file

@ -293,7 +293,7 @@ static int i915_add_combinations(struct driver *drv)
&metadata_4_tiled, render_not_linear);
drv_add_combinations(drv, scanout_render_formats,
ARRAY_SIZE(scanout_render_formats), &metadata_4_tiled,
render_not_linear);
scanout_and_render_not_linear);
} else {
struct format_metadata metadata_y_tiled = { .tiling = I915_TILING_Y,
.priority = 3,