gallium/format: Add a helper to combine separate Z24 and S8 stencil.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 30 Jul 2018 22:20:00 +0000 (15:20 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 15 Oct 2018 06:36:28 +0000 (23:36 -0700)
commitc3d219837af66b4299ab7e746b65ff33a0a6ca0d
treeb98292b407a1e7968515ccd0e63fdd5503324cc6
parent5849e0612cc4c21d213bdb4bd8d0a3f9531cc2b3
gallium/format: Add a helper to combine separate Z24 and S8 stencil.

This new function takes separate Z24 depth and S8 stencil sources,
and packs them into a single combined Z24S8 buffer.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/auxiliary/util/u_format_zs.c
src/gallium/auxiliary/util/u_format_zs.h