public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 1/3] lib/igt_draw: BCS_SWCTRL is gen6+
@ 2019-11-29 14:30 Ville Syrjala
  2019-11-29 14:30 ` [igt-dev] [PATCH i-g-t 2/3] lib/igt_draw: Fix blt tiled stride for gen2/3 Ville Syrjala
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Ville Syrjala @ 2019-11-29 14:30 UTC (permalink / raw)
  To: igt-dev

From: Ville Syrjälä <ville.syrjala@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@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);
+
 	bcs_swctrl = (0x3 << 16) | (on ? 0x3 : 0x0);
 
 	/* To change the tile register, insert an MI_FLUSH_DW followed by an
-- 
2.23.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-11-30 10:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-29 14:30 [igt-dev] [PATCH i-g-t 1/3] lib/igt_draw: BCS_SWCTRL is gen6+ Ville Syrjala
2019-11-29 14:30 ` [igt-dev] [PATCH i-g-t 2/3] lib/igt_draw: Fix blt tiled stride for gen2/3 Ville Syrjala
2019-11-29 15:08   ` Chris Wilson
2019-11-29 14:30 ` [igt-dev] [PATCH i-g-t 3/3] tests/kms_rmfb: Use COMMIT_UNIVERSAL for overlay/cursor planes Ville Syrjala
2019-11-29 15:04 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/3] lib/igt_draw: BCS_SWCTRL is gen6+ Patchwork
2019-11-29 15:07 ` [igt-dev] [PATCH i-g-t 1/3] " Chris Wilson
2019-11-30 10:39 ` [igt-dev] ✗ Fi.CI.IGT: failure for series starting with [i-g-t,1/3] " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox