nv50: fix occlusion queries
Left behind from some gallium changes a while back..
This commit is contained in:
@@ -90,11 +90,12 @@ nv50_query_end(struct pipe_context *pipe, struct pipe_query *pq)
|
||||
struct nouveau_channel *chan = nv50->screen->nvws->channel;
|
||||
struct nouveau_grobj *tesla = nv50->screen->tesla;
|
||||
struct nv50_query *q = nv50_query(pq);
|
||||
struct nouveau_bo *bo = nv50->screen->nvws->get_bo(q->buffer);
|
||||
|
||||
WAIT_RING (chan, 5);
|
||||
BEGIN_RING(chan, tesla, 0x1b00, 4);
|
||||
OUT_RELOCh(chan, q->buffer, 0, NOUVEAU_BO_VRAM | NOUVEAU_BO_WR);
|
||||
OUT_RELOCl(chan, q->buffer, 0, NOUVEAU_BO_VRAM | NOUVEAU_BO_WR);
|
||||
OUT_RELOCh(chan, bo, 0, NOUVEAU_BO_VRAM | NOUVEAU_BO_WR);
|
||||
OUT_RELOCl(chan, bo, 0, NOUVEAU_BO_VRAM | NOUVEAU_BO_WR);
|
||||
OUT_RING (chan, 0x00000000);
|
||||
OUT_RING (chan, 0x0100f002);
|
||||
FIRE_RING (chan);
|
||||
|
||||
Reference in New Issue
Block a user