diff options
Diffstat (limited to 'raster_op.c')
-rw-r--r-- | raster_op.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/raster_op.c b/raster_op.c new file mode 100644 index 0000000..2d0b10b --- /dev/null +++ b/raster_op.c @@ -0,0 +1,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(); +} |