[igt-dev] [PATCH i-g-t v21 03/17] lib/intel_bufops: change stride requirements for Grantsdale
Chris Wilson
chris at chris-wilson.co.uk
Sun Aug 2 12:04:48 UTC 2020
Quoting Zbigniew Kempczyński (2020-08-02 07:35:47)
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> ---
> lib/intel_bufops.c | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/lib/intel_bufops.c b/lib/intel_bufops.c
> index 2ba4dbf6..d077b1ac 100644
> --- a/lib/intel_bufops.c
> +++ b/lib/intel_bufops.c
> @@ -752,8 +752,7 @@ static void __intel_buf_init(struct buf_ops *bops,
>
> if (bops->intel_gen < 3)
> tile_width = 128;
> - else if (IS_915GM(devid) || IS_915G(devid) ||
> - buf->tiling == I915_TILING_X)
> + else if (IS_915G(devid) || buf->tiling == I915_TILING_X)
> tile_width = 512;
#define HAS_128_BYTE_Y_TILING(dev_priv) \
(!IS_GEN(dev_priv, 2) && !(IS_I915G(dev_priv) || IS_I915GM(dev_priv)))
That is both i915g and i915gm use 512B for y-tiling widths.
-Chris
More information about the igt-dev
mailing list