[igt-dev] [i-g-t] lib/rendercopy: Specify the correct vertex buffer offset
Pankaj Bharadiya
pankaj.laxminarayan.bharadiya at intel.com
Mon Jun 15 05:18:48 UTC 2020
We must specify the correct vertex buffer offset as
"End Offset Enable" bit is not enabled in 3DPRIMITIVE instruction.
This fixes below fatal error:
[FATAL]:
***** **** *** ** * FATAL * ** *** **** *****
StateArbiter>Surface State Pointers in the binding table must be 64 byte aligned.
Be sure that the binding table is set up correctly. Address found: 6b6b6b6b
***** **** *** ** END FATAL ** *** **** *****
Bspec: 56206
Signed-off-by: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya at intel.com>
---
lib/rendercopy_gen9.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/rendercopy_gen9.c b/lib/rendercopy_gen9.c
index 85ae4cabc..695806500 100644
--- a/lib/rendercopy_gen9.c
+++ b/lib/rendercopy_gen9.c
@@ -951,7 +951,7 @@ static void gen8_emit_primitive(struct intel_batchbuffer *batch, uint32_t offset
OUT_BATCH(GEN4_3DPRIMITIVE | (7-2));
OUT_BATCH(0); /* gen8+ ignore the topology type field */
OUT_BATCH(3); /* vertex count */
- OUT_BATCH(0); /* We're specifying this instead with offset in GEN6_3DSTATE_VERTEX_BUFFERS */
+ OUT_BATCH(offset);
OUT_BATCH(1); /* single instance */
OUT_BATCH(0); /* start instance location */
OUT_BATCH(0); /* index buffer offset, ignored */
--
2.23.0
More information about the igt-dev
mailing list