From: Zhao Yakui <yakui.zhao@xxxxxxxxx> Signed-off-by: Zhao Yakui <yakui.zhao@xxxxxxxxx> Signed-off-by: Ben Widawsky <benjamin.widawsky@xxxxxxxxx> Signed-off-by: Damien Lespiau <damien.lespiau@xxxxxxxxx> --- 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 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx