displacement on curved mesh doesnt work right

@ClockworkOcean is there a proper way to use a displacement/ height map around edges?

i want to create a solid brick wall where you can see the individual bricks in the edges, instead of one solid line