gallium/u_blitter: fix is_blit_generic_supported() stencil checking
authorBrian Paul <brianp@vmware.com>
Fri, 5 Apr 2013 17:21:09 +0000 (11:21 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 5 Apr 2013 22:14:51 +0000 (16:14 -0600)
commitde99b6d1170277e228dfd3b22297554619169ebf
treefe7b5e18a1e0432d5e4738721ff6d4c2594e9d66
parent9cda3560048e8595d3ffa315b76487f4479bff2c
gallium/u_blitter: fix is_blit_generic_supported() stencil checking

Don't check if there's sampler support for stencil if we're not
going to actually blit/copy stencil values.  Fixes the case where
we mistakenly said we can't support a blit of depth values from
S8Z24 to X8Z24.

Also, rename the is_stencil variable to dst_has_stencil to improve
readability.

NOTE: This is a candidate for the stable branches.

Reviewed-by: Marek Olšák <maraeo@gmail.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_blitter.c