mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-07-24 02:16:03 +00:00
mediafill/skl: Follow spec to configure FORCE_MEDIA_AWAKE in PIPELINE_SELECTION
The FORCE_MEDIA_AWAKE bit is added for the PIPELINE_SELECTION command and some instructions requires that the media enginee is awake. 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
54465b8ac5
commit
d2e4eb3619
@ -374,4 +374,11 @@ struct gen8_surface_state
|
||||
|
||||
#define GEN9_PIPELINE_SELECTION_MASK (3 << 8)
|
||||
|
||||
/* If enabled, it will force awake media enginee and the following instructions
|
||||
* will require that the media enginee is awake.
|
||||
*/
|
||||
#define GEN9_FORCE_MEDIA_AWAKE_DISABLE (0 << 5)
|
||||
#define GEN9_FORCE_MEDIA_AWAKE_ENABLE (1 << 5)
|
||||
#define GEN9_FORCE_MEDIA_AWAKE_MASK (1 << 13)
|
||||
|
||||
#endif /* GEN8_MEDIA_H */
|
||||
|
@ -363,7 +363,9 @@ gen9_media_fillfunc(struct intel_batchbuffer *batch,
|
||||
/* media pipeline */
|
||||
batch->ptr = batch->buffer;
|
||||
OUT_BATCH(GEN8_PIPELINE_SELECT | PIPELINE_SELECT_MEDIA |
|
||||
GEN9_PIPELINE_SELECTION_MASK);
|
||||
GEN9_FORCE_MEDIA_AWAKE_ENABLE |
|
||||
GEN9_PIPELINE_SELECTION_MASK |
|
||||
GEN9_FORCE_MEDIA_AWAKE_MASK);
|
||||
gen9_emit_state_base_address(batch);
|
||||
|
||||
gen8_emit_vfe_state(batch);
|
||||
@ -374,6 +376,11 @@ gen9_media_fillfunc(struct intel_batchbuffer *batch,
|
||||
|
||||
gen8_emit_media_objects(batch, x, y, width, height);
|
||||
|
||||
OUT_BATCH(GEN8_PIPELINE_SELECT | PIPELINE_SELECT_MEDIA |
|
||||
GEN9_FORCE_MEDIA_AWAKE_DISABLE |
|
||||
GEN9_PIPELINE_SELECTION_MASK |
|
||||
GEN9_FORCE_MEDIA_AWAKE_MASK);
|
||||
|
||||
OUT_BATCH(MI_BATCH_BUFFER_END);
|
||||
|
||||
batch_end = batch_align(batch, 8);
|
||||
|
Loading…
x
Reference in New Issue
Block a user