broadcom/vc5: Simplify separate stencil surface setup.
authorEric Anholt <eric@anholt.net>
Sun, 21 Jan 2018 00:44:53 +0000 (16:44 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 1 Feb 2018 19:02:29 +0000 (11:02 -0800)
commitdea902c93352b875178fef9b8a65fd53e52696b3
tree632217f54b62404c089db98444958ca23b401e29
parent7239b3edbe754c6e85a6c3774d484e42a6253058
broadcom/vc5: Simplify separate stencil surface setup.

If we just make another gallium surface for the separate stencil, it's a
lot easier to keep track of which set of fields we're using in RCL setup.

This also incidentally fixes a little bug in setting up the surface's
padded height for separate stencil when the UIF-ness changes at different
levels of Z versus stencil.
src/gallium/drivers/vc5/vc5_rcl.c
src/gallium/drivers/vc5/vc5_resource.c
src/gallium/drivers/vc5/vc5_resource.h