OSDN Git Service

i915: Enable Y-tiling for huge buffer object for GEN11 GPU
authorAbhishek Kumar <abhishek4.kumar@intel.com>
Fri, 9 Oct 2020 10:38:01 +0000 (16:08 +0530)
committerCommit Bot <commit-bot@chromium.org>
Thu, 22 Oct 2020 07:30:52 +0000 (07:30 +0000)
Intel GEN11+ Gpu can scan out Y-tiled buffers with maximum width
5320, so enable Y-tiled buffer for GEN11.

BUG=b:168573604 b:168706685
TEST=play 5k video on JSL device

Change-Id: Idb99c9512591e786f796fb32c0e60f549cec03da
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/2462328
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Andres Calderon Jaramillo <andrescj@chromium.org>
Tested-by: Girish DS <girish.ds@intel.corp-partner.google.com>
Commit-Queue: Andres Calderon Jaramillo <andrescj@chromium.org>

i915.c

diff --git a/i915.c b/i915.c
index da4de96..6fc59eb 100644 (file)
--- a/i915.c
+++ b/i915.c
@@ -309,7 +309,7 @@ static int i915_bo_compute_metadata(struct bo *bo, uint32_t width, uint32_t heig
 {
        uint64_t modifier;
        struct i915_device *i915 = bo->drv->priv;
-       bool huge_bo = (i915->gen <= 11) && (width > 4096);
+       bool huge_bo = (i915->gen < 11) && (width > 4096);
 
        if (modifiers) {
                modifier =