Mesa (master): iris: fix decode_get_bo callback

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Mar 7 17:39:46 UTC 2019


Module: Mesa
Branch: master
Commit: 575f8e8b60ab06e559a62ffe90913453352f32b4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=575f8e8b60ab06e559a62ffe90913453352f32b4

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Thu Mar  7 16:59:53 2019 +0000

iris: fix decode_get_bo callback

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Fixes: acb50d6b1ff1b7 ("intel/decoders: handle decoding MI_BBS from ring")
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>

---

 src/gallium/drivers/iris/iris_batch.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/iris/iris_batch.c b/src/gallium/drivers/iris/iris_batch.c
index f6362fd684a..5548b8f6c81 100644
--- a/src/gallium/drivers/iris/iris_batch.c
+++ b/src/gallium/drivers/iris/iris_batch.c
@@ -115,10 +115,12 @@ dump_validation_list(struct iris_batch *batch)
  * Return BO information to the batch decoder (for debugging).
  */
 static struct gen_batch_decode_bo
-decode_get_bo(void *v_batch, uint64_t address)
+decode_get_bo(void *v_batch, bool ppgtt, uint64_t address)
 {
    struct iris_batch *batch = v_batch;
 
+   assert(ppgtt);
+
    for (int i = 0; i < batch->exec_count; i++) {
       struct iris_bo *bo = batch->exec_bos[i];
       /* The decoder zeroes out the top 16 bits, so we need to as well */




More information about the mesa-commit mailing list