summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/midgard/helpers.h
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-05-14 23:18:18 +0000
committerAlyssa Rosenzweig <[email protected]>2019-05-16 01:16:36 +0000
commit81b1053d9b4f6e39a10ba3db79b4225172a23187 (patch)
treed38d0c206b08fedc7dd85391da9e2110ddf0be87 /src/gallium/drivers/panfrost/midgard/helpers.h
parentcea935205919d825a3ff5287acd08f9832381168 (diff)
panfrost: Set custom stride for textures when necessary
From Gallium (and our) perspective, the stride of a BO is arbitrary. For internal buffers, we can make it something nice, but for imported linear buffers (e.g. EGL clients), we don't always have that luxury. To cope, we calculate the expected stride of a texture, compare it to the BO's actual reported stride, and if they differ, set the latter as a custom stride. Fixes rendering of windows not on tile boundaries (noticeable in Weston with es2gears_wayland, for instance). Also, this should fix stride issues with bufer reloading. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/midgard/helpers.h')
0 files changed, 0 insertions, 0 deletions