iris: port bug fix from i965
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Apr 2018 22:59:57 +0000 (15:59 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:05 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_bufmgr.c

index 1ba63ee98a1bc4411931b4de934723a99eeb16e1..45f17c0c37e9ff790a5bbb5ec209cdbc420ed7ae 100644 (file)
@@ -504,7 +504,7 @@ retry:
        * memory and assign it a new address.
        */
       if (memzone != memzone_for_address(bo->gtt_offset)) {
-         vma_free(bufmgr, bo->gtt_offset, size);
+         vma_free(bufmgr, bo->gtt_offset, bo_size);
          bo->gtt_offset = 0;
       }
    } else {