summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>2015-10-12 11:37:59 +0300
committerXiang, Haihao <haihao.xiang@intel.com>2015-10-13 14:38:52 +0800
commit4c02bf3f9db6c753f71ba78d6a9a8d9e1796dd98 (patch)
treed4ea2d2f1eb9c515b4a1e6c5fb0f93af84b76da5
parent35bd134b00b640beff65bc41c1245f7fa8687575 (diff)
vpp/gen8: Use 48 bit address relocation for STATE_BASE_ADDRESS
Use 48 bit address relocation for Surface state address, Dynamic state address and Instruction base address. Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
-rw-r--r--src/gen8_post_processing.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/gen8_post_processing.c b/src/gen8_post_processing.c
index 714997f..a5e036d 100644
--- a/src/gen8_post_processing.c
+++ b/src/gen8_post_processing.c
@@ -1246,21 +1246,20 @@ gen8_pp_state_base_address(VADriverContextP ctx,
OUT_BATCH(batch, 0 | BASE_ADDRESS_MODIFY);
OUT_BATCH(batch, 0);
OUT_BATCH(batch, 0);
- /* DW4. Surface state address */
- OUT_RELOC(batch, pp_context->surface_state_binding_table.bo, I915_GEM_DOMAIN_INSTRUCTION, 0, BASE_ADDRESS_MODIFY); /* Surface state base address */
- OUT_BATCH(batch, 0);
- /* DW6. Dynamic state address */
- OUT_RELOC(batch, pp_context->dynamic_state.bo, I915_GEM_DOMAIN_RENDER | I915_GEM_DOMAIN_SAMPLER,
+
+ /* DW4-5. Surface state address */
+ OUT_RELOC64(batch, pp_context->surface_state_binding_table.bo, I915_GEM_DOMAIN_INSTRUCTION, 0, BASE_ADDRESS_MODIFY); /* Surface state base address */
+
+ /* DW6-7. Dynamic state address */
+ OUT_RELOC64(batch, pp_context->dynamic_state.bo, I915_GEM_DOMAIN_RENDER | I915_GEM_DOMAIN_SAMPLER,
0, 0 | BASE_ADDRESS_MODIFY);
- OUT_BATCH(batch, 0);
/* DW8. Indirect object address */
OUT_BATCH(batch, 0 | BASE_ADDRESS_MODIFY);
OUT_BATCH(batch, 0);
- /* DW10. Instruction base address */
- OUT_RELOC(batch, pp_context->instruction_state.bo, I915_GEM_DOMAIN_INSTRUCTION, 0, BASE_ADDRESS_MODIFY);
- OUT_BATCH(batch, 0);
+ /* DW10-11. Instruction base address */
+ OUT_RELOC64(batch, pp_context->instruction_state.bo, I915_GEM_DOMAIN_INSTRUCTION, 0, BASE_ADDRESS_MODIFY);
OUT_BATCH(batch, 0xFFFF0000 | BASE_ADDRESS_MODIFY);
OUT_BATCH(batch, 0xFFFF0000 | BASE_ADDRESS_MODIFY);