i965/gen7: Add R8_UINT stencil miptree copy for sampling
authorJordan Justen <jordan.l.justen@intel.com>
Sat, 11 Jun 2016 23:21:36 +0000 (16:21 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Fri, 26 Aug 2016 17:09:22 +0000 (10:09 -0700)
commit2a9c65a01d133fe196fd6e40affb431295d0b9cc
tree701a866f579be6a844f0ebe93fb11e9581176593
parent91627d1956a7e82a5821500a0bca537ffd6e5157
i965/gen7: Add R8_UINT stencil miptree copy for sampling

For gen < 8, we can't sample from the stencil buffer, which is
required for the ARB_stencil_texturing extension. We'll make a copy of
the stencil data into a new texture that we can sample using the
R8_UINT surface type.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h