virgl: do not use SP_MAX_TEXTURE_*_LEVELS defines
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 14 Aug 2018 12:10:23 +0000 (13:10 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 15 Aug 2018 16:48:08 +0000 (18:48 +0200)
commit825aaeae3942effc29aba6ae182146c0f97d277c
treee38dddf5d73f34dcabb3f3228478601eec4ebe97
parentef7ae84daf8049ee89e962f7a88b84a5c14f8a1b
virgl: do not use SP_MAX_TEXTURE_*_LEVELS defines

These macro-names are also used for softpipe, so let's avoid confusion
by avoiding them. Besides, they are just used in one place in virgl, so
let's just inline them into the place they are used instead.

While we're at it, fixup an error in the comment for the 3D version.
Mesa subtracts computes max-size by doing by 2^(n-1), which means this
should be 256 cubed, not 512 cubed. The other comments are correct.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Jakob Bornecrantz <jakob@collabora.com>
src/gallium/drivers/virgl/virgl_screen.c