diff options
author | Karol Herbst <kherbst@redhat.com> | 2020-05-03 16:21:09 +0200 |
---|---|---|
committer | Karol Herbst <kherbst@redhat.com> | 2021-05-06 19:41:09 +0200 |
commit | 2f04bd2d891dde617a4c7829188333cbdcdf0038 (patch) | |
tree | 3d2a46e5296a26b6180b6c0c0af0a011b642ad89 /nouveau | |
parent | 52fd2a25426fac43422589ada027ab208de20e32 (diff) | |
download | libdrm-2f04bd2d891dde617a4c7829188333cbdcdf0038.tar.gz libdrm-2f04bd2d891dde617a4c7829188333cbdcdf0038.tar.bz2 libdrm-2f04bd2d891dde617a4c7829188333cbdcdf0038.zip |
nouveau: mask push buffer length pushbuf_dump
nvc0 sets the NVC0_IB_ENTRY_1_NO_PREFETCH bit on some pushbuffers
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'nouveau')
-rw-r--r-- | nouveau/pushbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nouveau/pushbuf.c b/nouveau/pushbuf.c index 363ff0fc..7f1ed8ca 100644 --- a/nouveau/pushbuf.c +++ b/nouveau/pushbuf.c @@ -292,7 +292,7 @@ pushbuf_dump(struct nouveau_pushbuf_krec *krec, int krec_id, int chid) kref = krec->buffer + kpsh->bo_index; bo = (void *)(unsigned long)kref->user_priv; bgn = (uint32_t *)((char *)bo->map + kpsh->offset); - end = bgn + (kpsh->length /4); + end = bgn + ((kpsh->length & 0x7fffff) /4); err("ch%d: psh %s%08x %010llx %010llx\n", chid, bo->map ? "" : "(unmapped) ", kpsh->bo_index, |