OSDN Git Service

st/mesa: always set sampler swizzle according to the texture base format
authorMarek Olšák <marek.olsak@amd.com>
Sun, 11 Jun 2017 23:20:34 +0000 (01:20 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 21 Jun 2017 23:51:02 +0000 (01:51 +0200)
commitbfe1e7737a76e3b046881976dd21c829ab5eccb0
tree646059cf2732d94e93033cd5447c7119f1ec302e
parent25723857d95e40147e59e3fda5b5fba1b41ec5a4
st/mesa: always set sampler swizzle according to the texture base format

Mainly don't (indirectly) call util_format_description here.

If the driver supports texture swizzling, this will always do the right
thing. If the driver doesn't support it, it doesn't matter.

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