nvc0: save some CPU cycles in nvc0_context_unreference_resources()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 12 May 2016 19:06:05 +0000 (21:06 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 12 May 2016 19:37:08 +0000 (21:37 +0200)
commitabb3401095e24f9551c964a01729e870414395af
treef46daf3e9a233ced6e33c4fbf59e5ff8155f3ef5
parentb8f0b00a9a541868e40eed0a81dccc7ce59a8129
nvc0: save some CPU cycles in nvc0_context_unreference_resources()

This reduces the number of loop iterations for invalidating buffers
and images.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_context.c