r600: rework cb/db setup
authorAlex Deucher <alexdeucher@gmail.com>
Thu, 3 Sep 2009 22:02:54 +0000 (18:02 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Thu, 3 Sep 2009 22:04:47 +0000 (18:04 -0400)
commit6a97cca0817b743e0633ff76630a5bef24469d1b
treef9c6843818e1e9c715223747b4c2c76fb6ca047f
parent323440b3e204a6de8faa8009eea9bb05c3b11991
r600: rework cb/db setup

Setup the regs when we emit rather than during state setup.
In certain cases a proper CB target was never emitted.
This fixes bug 23658.
src/mesa/drivers/dri/r600/r700_chip.c
src/mesa/drivers/dri/r600/r700_state.c
src/mesa/drivers/dri/r600/r700_state.h