iris: index buffer BO
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 23 Jan 2018 09:10:05 +0000 (01:10 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:05 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_state.c

index c33d7e9c961152f0f45f664529641bd1a0c30096..930f3bab828ca1c0b3adf2c616881540503defa4 100644 (file)
@@ -1579,8 +1579,7 @@ iris_upload_render_state(struct iris_context *ice,
          ib.IndexFormat = draw->index_size;
          ib.MOCS = MOCS_WB;
          ib.BufferSize = res->bo->size;
-         // XXX: gah, addresses :(  need two different combine address funcs
-         // ib.BufferStartingAddress = res->bo;
+         ib.BufferStartingAddress = ro_bo(res->bo, 0);
       }
    }