cso: Optimize cso_save/restore_fragment_samplers
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 16 Dec 2016 09:00:33 +0000 (18:00 +0900)
committerMichel Dänzer <michel@daenzer.net>
Mon, 19 Dec 2016 08:50:21 +0000 (17:50 +0900)
commit9e142386472e599e70856634e4cbd247114af74a
treee453ec8e366863a5dd9db81af7e595449406ae59
parent5e70f80c9969c0adc095ba0a874ec87aad676729
cso: Optimize cso_save/restore_fragment_samplers

Only copy/memset the pointers that actually need to be.

v2:
* Cast info->nr_samplers to int for calculating delta (Nicolai)

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/auxiliary/cso_cache/cso_context.c