[igt-dev] [PATCH i-g-t 1/3] lib/igt_draw: BCS_SWCTRL is gen6+
Chris Wilson
chris at chris-wilson.co.uk
Fri Nov 29 15:07:33 UTC 2019
Quoting Ville Syrjala (2019-11-29 14:30:46)
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> Let's make sure we are runing on gen6+ before trying
> to poke BCS_SWCTRL.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
> ---
> lib/igt_draw.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/lib/igt_draw.c b/lib/igt_draw.c
> index bea86c612df8..11bbfd0a1353 100644
> --- a/lib/igt_draw.c
> +++ b/lib/igt_draw.c
> @@ -273,6 +273,8 @@ static void switch_blt_tiling(struct intel_batchbuffer *batch, uint32_t tiling,
> if (tiling != I915_TILING_Y)
> return;
>
> + igt_require(batch->gen >= 6);
True,
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris
More information about the igt-dev
mailing list