[Intel-gfx] [PATCH i-g-t 25/26] mediafill/skl: Follow spec to configure media sampler DOP clock gating in PIPELINE_SELECTION

Damien Lespiau damien.lespiau at intel.com
Fri Sep 26 16:03:23 CEST 2014


From: Zhao Yakui <yakui.zhao at intel.com>

Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
Signed-off-by: Ben Widawsky <benjamin.widawsky at intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 lib/gen8_media.h      | 4 ++++
 lib/media_fill_gen9.c | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/lib/gen8_media.h b/lib/gen8_media.h
index f654215..15cd799 100644
--- a/lib/gen8_media.h
+++ b/lib/gen8_media.h
@@ -381,4 +381,8 @@ struct gen8_surface_state
 #define GEN9_FORCE_MEDIA_AWAKE_ENABLE		(1 << 5)
 #define GEN9_FORCE_MEDIA_AWAKE_MASK		(1 << 13)
 
+#define GEN9_SAMPLER_DOP_GATE_DISABLE		(0 << 4)
+#define GEN9_SAMPLER_DOP_GATE_ENABLE		(1 << 4)
+#define GEN9_SAMPLER_DOP_GATE_MASK		(1 << 12)
+
 #endif /* GEN8_MEDIA_H */
diff --git a/lib/media_fill_gen9.c b/lib/media_fill_gen9.c
index 4ecf268..6c6ba89 100644
--- a/lib/media_fill_gen9.c
+++ b/lib/media_fill_gen9.c
@@ -364,7 +364,9 @@ gen9_media_fillfunc(struct intel_batchbuffer *batch,
 	batch->ptr = batch->buffer;
 	OUT_BATCH(GEN8_PIPELINE_SELECT | PIPELINE_SELECT_MEDIA |
 			GEN9_FORCE_MEDIA_AWAKE_ENABLE |
+			GEN9_SAMPLER_DOP_GATE_DISABLE |
 			GEN9_PIPELINE_SELECTION_MASK |
+			GEN9_SAMPLER_DOP_GATE_MASK |
 			GEN9_FORCE_MEDIA_AWAKE_MASK);
 	gen9_emit_state_base_address(batch);
 
@@ -378,7 +380,9 @@ gen9_media_fillfunc(struct intel_batchbuffer *batch,
 
 	OUT_BATCH(GEN8_PIPELINE_SELECT | PIPELINE_SELECT_MEDIA |
 			GEN9_FORCE_MEDIA_AWAKE_DISABLE |
+			GEN9_SAMPLER_DOP_GATE_ENABLE |
 			GEN9_PIPELINE_SELECTION_MASK |
+			GEN9_SAMPLER_DOP_GATE_MASK |
 			GEN9_FORCE_MEDIA_AWAKE_MASK);
 
 	OUT_BATCH(MI_BATCH_BUFFER_END);
-- 
1.8.3.1




More information about the Intel-gfx mailing list