r600g: exit bo per reg scanning loop early.
authorDave Airlie <airlied@redhat.com>
Tue, 7 Jun 2011 02:33:24 +0000 (12:33 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 8 Jun 2011 01:47:00 +0000 (11:47 +1000)
commitff8717527dd8b0313905c67712428fa5d4647d9b
tree9a2d6a54401747899bd8af86ba0d081051c66f37
parent138f660b5890f4ceba649df00239111947735842
r600g: exit bo per reg scanning loop early.

Exit this loop early to avoid pointless iterations later.

Move the resource bos to the first two regs, it actually
doesn't matter which regs we use for this in resource land.

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