[Intel-gfx] [PATCH i-g-t 23/26] mediafill/skl: Follow the spec to add pipeline_select mask
Damien Lespiau
damien.lespiau at intel.com
Fri Sep 26 16:03:21 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 | 3 +++
lib/media_fill_gen9.c | 3 ++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/gen8_media.h b/lib/gen8_media.h
index 1214cd1..d1df8b9 100644
--- a/lib/gen8_media.h
+++ b/lib/gen8_media.h
@@ -371,4 +371,7 @@ struct gen8_surface_state
} ss15;
};
+
+#define GEN9_PIPELINE_SELECTION_MASK (3 << 8)
+
#endif /* GEN8_MEDIA_H */
diff --git a/lib/media_fill_gen9.c b/lib/media_fill_gen9.c
index a067221..df0407d 100644
--- a/lib/media_fill_gen9.c
+++ b/lib/media_fill_gen9.c
@@ -362,7 +362,8 @@ gen9_media_fillfunc(struct intel_batchbuffer *batch,
/* media pipeline */
batch->ptr = batch->buffer;
- OUT_BATCH(GEN8_PIPELINE_SELECT | PIPELINE_SELECT_MEDIA);
+ OUT_BATCH(GEN8_PIPELINE_SELECT | PIPELINE_SELECT_MEDIA |
+ GEN9_PIPELINE_SELECTION_MASK);
gen9_emit_state_base_address(batch);
gen8_emit_vfe_state(batch);
--
1.8.3.1
More information about the Intel-gfx
mailing list