r600g: only call bo loop if nbos is positive.
authorDave Airlie <airlied@redhat.com>
Mon, 6 Jun 2011 01:15:10 +0000 (11:15 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 6 Jun 2011 23:28:59 +0000 (09:28 +1000)
commiteb4bb48ef41483750fa678ab21ef52accbf4e628
treef991c314c816249a9e2440f500f77bb9d77e4415
parent6cd3534676a58e92ac479eee7040df2ad27fdac0
r600g: only call bo loop if nbos is positive.

we don't need to loop over all the registers unless we have
some bos in the block, also avoid setting the ctx flags,
and move the optional stuff down below this chunk.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/winsys/r600/drm/r600_hw_context.c