mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-18 13:26:30 +00:00
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:
parent
d2e4eb3619
commit
20e9cf38b7
@ -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 */
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user