Skip to contentSkip to conversation

lib/rendercopy_gen9: WaBindlessSurfaceStateModifyEnable

PATCH In review Mika Kuoppala 2 participants 2 messages Aug 11, 2015 – Aug 12, 2015 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/rendercopy_gen9: WaBindlessSurfaceStateModifyEnable

Don't set the size of bindless surface state on rendercopy. And as of doing so, take into account the workaround for setting the command size.

This was tried during hunting for
https://bugs.freedesktop.org/show_bug.cgi?id=89959. But no impact was found.

---
 lib/rendercopy_gen9.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
lib/rendercopy_gen9.c +7 -3
index 0766192..4a4a604 100644
@@ -511,7 +511,11 @@ gen7_emit_push_constants(struct intel_batchbuffer *batch) {
 
 static void
 gen9_emit_state_base_address(struct intel_batchbuffer *batch) {
-	OUT_BATCH(GEN6_STATE_BASE_ADDRESS | (19 - 2));
+
+	/* WaBindlessSurfaceStateModifyEnable:skl,bxt */
+	/* The length has to be one less if we dont modify
+	   bindless state */
+	OUT_BATCH(GEN6_STATE_BASE_ADDRESS | (19 - 1 - 2));
 
 	/* general */
 	OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
@@ -544,9 +548,9 @@ gen9_emit_state_base_address(struct intel_batchbuffer *batch) {
 	OUT_BATCH(1 << 12 | 1);
 
 	/* Bindless surface state base address */
-	OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
 	OUT_BATCH(0);
-	OUT_BATCH(0xfffff000);
+	OUT_BATCH(0);
+	OUT_BATCH(0);
 }
 
 static void
Signature · 6 lines
2.1.4

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on v1 1/1
#1 lore raw
Quoted 34 lines · Mika Kuoppala

Don't set the size of bindless surface state on rendercopy. And as of doing so, take into account the workaround for setting the command size.

This was tried during hunting for
https://bugs.freedesktop.org/show_bug.cgi?id=89959. But no impact was found.

---
  lib/rendercopy_gen9.c | 10 +++++++---
  1 file changed, 7 insertions(+), 3 deletions(-)
lib/rendercopy_gen9.c +5 -1
index 0766192..4a4a604 100644
@@ -511,7 +511,11 @@ gen7_emit_push_constants(struct intel_batchbuffer *batch) {
 
  static void
  gen9_emit_state_base_address(struct intel_batchbuffer *batch) {
-	OUT_BATCH(GEN6_STATE_BASE_ADDRESS | (19 - 2));
+
+	/* WaBindlessSurfaceStateModifyEnable:skl,bxt */
+	/* The length has to be one less if we dont modify
+	   bindless state */
+	OUT_BATCH(GEN6_STATE_BASE_ADDRESS | (19 - 1 - 2));
 
  	/* general */
  	OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
@@ -544,9 +548,9 @@ gen9_emit_state_base_address(struct intel_batchbuffer *batch) {
  	OUT_BATCH(1 << 12 | 1);

lib/rendercopy_gen9.c gen9_emit_state_base_address(struct intel_batchbuffer *batch) { · line 556

Quoted 10 lines
lib/rendercopy_gen9.c +2 -2
 
  	/* Bindless surface state base address */
-	OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
  	OUT_BATCH(0);
-	OUT_BATCH(0xfffff000);
+	OUT_BATCH(0);
+	OUT_BATCH(0);
  }
 
  static void

Agrees with spec and looks good to me. No impact observed with gem_concurrent_blit subtests.

regards
Arun

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx