nvfx: stop incessantly spewing debug messages on the terminal
authorLuca Barbieri <luca@luca-barbieri.com>
Wed, 17 Mar 2010 19:31:56 +0000 (20:31 +0100)
committerLuca Barbieri <luca@luca-barbieri.com>
Tue, 23 Mar 2010 14:40:41 +0000 (15:40 +0100)
commita6cc9cf38d6e01d39b34f17a51c42e2d4962c0c9
tree95fb637578f50a1e1ddd9539239a67515700eede
parentc652ad907f0715a0c23476ebd48ab722c96a5064
nvfx: stop incessantly spewing debug messages on the terminal

Currently we are continuously spewing messages about these variables
since we call debug_get_bool_option everytime we want to check their value.

This is annoying, slows things down due to terminal rerendering
and obscures useful messages.

This patch only calls debug_get_bool_option once and caches the result in a
static variable.
src/gallium/drivers/nvfx/nvfx_miptree.c
src/gallium/drivers/nvfx/nvfx_transfer.c