diff options
author | Eric Anholt <[email protected]> | 2018-11-01 14:34:02 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-11-01 14:34:02 -0700 |
commit | 43a397c5804987a564e0f154c34018d512d58116 (patch) | |
tree | 1d82682f00fc7fcbe785e1029e1cf7bb5ba7c632 /src/gallium/drivers/vc4/vc4_resource.c | |
parent | 4e1b163eeda4d611383a6d36c5702af4fc80b85c (diff) |
vc4: Drop the winsys_stride relayout in the simluator
Since 0c1dd9dee0da ("broadcom/vc4: Allow importing linear BOs with
arbitrary offset/stride."), we have the vc4-side BO properly laid out
(assuming it's linear) in the winsys BO so that we can skip this extra
copy.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_resource.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_resource.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/vc4/vc4_resource.c b/src/gallium/drivers/vc4/vc4_resource.c index 94784bbdc0a..351eb8cd767 100644 --- a/src/gallium/drivers/vc4/vc4_resource.c +++ b/src/gallium/drivers/vc4/vc4_resource.c @@ -614,12 +614,10 @@ vc4_resource_from_handle(struct pipe_screen *pscreen, switch (whandle->type) { case WINSYS_HANDLE_TYPE_SHARED: - rsc->bo = vc4_bo_open_name(screen, - whandle->handle, whandle->stride); + rsc->bo = vc4_bo_open_name(screen, whandle->handle); break; case WINSYS_HANDLE_TYPE_FD: - rsc->bo = vc4_bo_open_dmabuf(screen, - whandle->handle, whandle->stride); + rsc->bo = vc4_bo_open_dmabuf(screen, whandle->handle); break; default: fprintf(stderr, |