v3d: Respect user-passed strides for BO imports.
authorEric Anholt <eric@anholt.net>
Thu, 1 Nov 2018 19:15:25 +0000 (12:15 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 1 Nov 2018 20:54:36 +0000 (13:54 -0700)
commit47586ab56989bc4225caf173f5bb570f60c7759f
tree85b432590f8086f1ba8ae3bfe8ab0cd00a859ead
parent5313fb8abd2af8f0b5cfb8d3bc1b64697d8176d7
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_bufmgr.c
src/gallium/drivers/v3d/v3d_bufmgr.h
src/gallium/drivers/v3d/v3d_context.h
src/gallium/drivers/v3d/v3d_resource.c
src/gallium/drivers/v3d/v3d_simulator.c