summaryrefslogtreecommitdiff
path: root/raster_op.c
blob: 2d0b10b23d3d1c4f50a515356269cb7b6260b7f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <stdio.h>

#include "screen.h"
#include "object.h"
#include "fifo.h"
#include "nouveau_class.h"

void raster_op_init(void)
{
	printf("-- Raster operation, init\n");

	SetSubchannel(NvSubRasterOp, NvRasterOp);

	BEGIN_RING(NvSubRasterOp, NV03_CONTEXT_ROP_DMA_NOTIFY, 1);
	OUT_RING  (NvSyncNotify);

	BEGIN_RING(NvSubRasterOp, NV03_CONTEXT_ROP_ROP, 1);
	OUT_RING (
		NV03_CONTEXT_ROP_ROP_DST_LOGIC_OP_OR |
		NV03_CONTEXT_ROP_ROP_SRC_LOGIC_OP_OR
	);

	FIRE_RING();
}