OSDN Git Service

r300g: fix hardlocks in occlusion queries
authorMarek Olšák <maraeo@gmail.com>
Fri, 18 Jun 2010 00:17:29 +0000 (02:17 +0200)
committerMarek Olšák <maraeo@gmail.com>
Fri, 18 Jun 2010 00:17:29 +0000 (02:17 +0200)
commitff8e1452df5c86e745aea0490e9c6afdf166407b
tree19471534a745921bee42875aa50f6be569e8a470
parent3c351e2c832e47d75ab0bdefa2fbbc4a1f2118db
r300g: fix hardlocks in occlusion queries

Early Z test (=ZTOP) must be disabled before a query is started,
otherwise the GPU is dead. The order of emitted registers matters more
than you might think.

This fixes hardlocks in sauerbraten.
src/gallium/drivers/r300/r300_context.c