diff options
author | Qiang Yu <[email protected]> | 2020-03-31 13:51:59 +0800 |
---|---|---|
committer | Qiang Yu <[email protected]> | 2020-04-12 10:02:24 +0000 |
commit | 25a61cce7dc6f5ab965577ebe589ccabf58945fa (patch) | |
tree | bb2d04f00f8068d2ac49b31e90e026257d98b335 /src/gallium/drivers | |
parent | 4094558e8643a266dfc8da9bc073751a3736a2fb (diff) |
lima: set offset when export resource
We missed set reource offset.
Reviewed-by: Vasily Khoruzhick <[email protected]>
Signed-off-by: Qiang Yu <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4517>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/lima/lima_resource.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/lima/lima_resource.c b/src/gallium/drivers/lima/lima_resource.c index 5dd2a472114..4644ea402c9 100644 --- a/src/gallium/drivers/lima/lima_resource.c +++ b/src/gallium/drivers/lima/lima_resource.c @@ -389,6 +389,7 @@ lima_resource_get_handle(struct pipe_screen *pscreen, if (!lima_bo_export(res->bo, handle)) return false; + handle->offset = res->levels[0].offset; handle->stride = res->levels[0].stride; return true; } |