st/mesa: simplify get_texture_format_swizzle
authorMarek Olšák <marek.olsak@amd.com>
Sun, 11 Jun 2017 23:04:34 +0000 (01:04 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 21 Jun 2017 23:51:02 +0000 (01:51 +0200)
commit3ee1c9b1263adcf68ca7c376d29c94a0fc31b2b0
treececd9dd9c0876cfdf60b92990927c36a46e2d529
parentf0ecd36ef8e10c087738c92cf62bad3815366963
st/mesa: simplify get_texture_format_swizzle

- Don't check GL_NONE (that was only for buffers).
- Don't use util_format_is_depth_or_stencil.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_sampler_view.c