llvmpipe: optimize the lp_setup_fence() function
authorBrian Paul <brianp@vmware.com>
Thu, 25 Mar 2010 02:49:12 +0000 (20:49 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 25 Mar 2010 02:49:39 +0000 (20:49 -0600)
commita9063cad0f0190ff88cd20fbad5aa87bf1a943f6
tree6e180910a941bd52731a729241a39215d95ac2fc
parentd7ddb589f49bfd3683650846d9b95835d0abd7ba
llvmpipe: optimize the lp_setup_fence() function

Avoid emitting fences when not needed.
Speeds up glReadPixels quite a bit when reading image row by row.
src/gallium/drivers/llvmpipe/lp_setup.c