How to increase video memory allocation

To find out the maximum allowed video memory:
glxinfo | egrep -i 'device|memory'

To find out how much video memory is currently being used:
egrep -i 'mem|kB' /var/log/Xorg.0.log
(This doesn’t work on my HP laptop with integrated Intel graphics in a Core i5-6200U, but it seems to work on some machines.)