From 47586ab56989bc4225caf173f5bb570f60c7759f Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 1 Nov 2018 12:15:25 -0700 Subject: v3d: Respect user-passed strides for BO imports. If the caller has passed in a stride for (linear) BO import, we should use that stride when rendering to the BO (or, if we some day support texturing from linear-imported BOs, when doing the linear-to-UIF shadow copy). This lets us remove the extra stride-changing relayout in the simulator. --- src/gallium/drivers/v3d/v3d_context.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gallium/drivers/v3d/v3d_context.h') diff --git a/src/gallium/drivers/v3d/v3d_context.h b/src/gallium/drivers/v3d/v3d_context.h index 70643e000b0..8e44bbae906 100644 --- a/src/gallium/drivers/v3d/v3d_context.h +++ b/src/gallium/drivers/v3d/v3d_context.h @@ -480,8 +480,7 @@ int v3d_simulator_flush(struct v3d_context *v3d, struct drm_v3d_submit_cl *args, struct v3d_job *job); int v3d_simulator_ioctl(int fd, unsigned long request, void *arg); -void v3d_simulator_open_from_handle(int fd, uint32_t winsys_stride, - int handle, uint32_t size); +void v3d_simulator_open_from_handle(int fd, int handle, uint32_t size); static inline int v3d_ioctl(int fd, unsigned long request, void *arg) -- cgit v1.2.3