diff options
author | Lionel Landwerlin <[email protected]> | 2020-02-21 18:06:18 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-20 15:58:22 +0000 |
commit | 07781f0afef80c22389c4ac92dbce2cf47c9ab45 (patch) | |
tree | a90c0ee2da429956fb1c213e60dad8ef77a39a17 /src/gallium/drivers/iris/iris_blorp.c | |
parent | 33b452aae72a185c877d6f9cd806d8ffa20d13e2 (diff) |
iris: store workaround address
This will allow to select a different address later, leaving the
beginning of the buffer to some other use.
Signed-off-by: Lionel Landwerlin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3203>
Diffstat (limited to 'src/gallium/drivers/iris/iris_blorp.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_blorp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_blorp.c b/src/gallium/drivers/iris/iris_blorp.c index 028e7c592be..a295c6cacd3 100644 --- a/src/gallium/drivers/iris/iris_blorp.c +++ b/src/gallium/drivers/iris/iris_blorp.c @@ -228,7 +228,10 @@ blorp_get_workaround_address(struct blorp_batch *blorp_batch) { struct iris_batch *batch = blorp_batch->driver_batch; - return (struct blorp_address) { .buffer = batch->screen->workaround_bo }; + return (struct blorp_address) { + .buffer = batch->screen->workaround_address.bo, + .offset = batch->screen->workaround_address.offset, + }; } static void |