mediafill/skl: Follow spec to configure media sampler DOP clock gating in PIPELINE_SELECTION

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
Zhao Yakui 2014-02-11 10:48:47 +08:00 committed by Damien Lespiau
parent d2e4eb3619
commit 20e9cf38b7
2 changed files with 8 additions and 0 deletions

View File

@ -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 */

View File

@ -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);