summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--imageblit.c7
-rw-r--r--main.c6
2 files changed, 4 insertions, 9 deletions
diff --git a/imageblit.c b/imageblit.c
index 020d3ab..8eac789 100644
--- a/imageblit.c
+++ b/imageblit.c
@@ -15,15 +15,13 @@ void imageblit_init(void)
OUT_RING(NvSyncNotify);
BEGIN_RING(NvSubImageBlit, NV04_IMAGE_BLIT_SURFACE, 1);
- OUT_RING(NvCtxSurf2D);
+ OUT_RING (NvCtxSurf2D);
BEGIN_RING(NvSubImageBlit, NV04_IMAGE_BLIT_CLIP_RECTANGLE, 1);
OUT_RING(NvClipRect);
BEGIN_RING(NvSubImageBlit, NV04_IMAGE_BLIT_PATTERN, 1);
OUT_RING(NvImagePattern);
BEGIN_RING(NvSubImageBlit, NV04_IMAGE_BLIT_ROP, 1);
OUT_RING(NvRasterOp);
- /*BEGIN_RING(NvSubImageBlit, NV04_IMAGE_BLIT_OPERATION, 1);
- OUT_RING(NV04_IMAGE_BLIT_OPERATION_SRCCOPY);*/
FIRE_RING();
}
@@ -34,9 +32,6 @@ void imageblit_copy(int sx,int sy, int dx,int dy, int w,int h)
SetSubchannel(NvSubImageBlit, NvImageBlit);
- BEGIN_RING(NvSubImageBlit, NV04_IMAGE_BLIT_SURFACE, 1);
- OUT_RING (NvCtxSurf2D);
-
BEGIN_RING(NvSubImageBlit, NV04_IMAGE_BLIT_OPERATION, 1);
OUT_RING (NV04_IMAGE_BLIT_OPERATION_SRCCOPY);
diff --git a/main.c b/main.c
index cc82ebb..891c9c0 100644
--- a/main.c
+++ b/main.c
@@ -42,10 +42,10 @@ int main(int argc, char **argv)
imageblit_init();
/* FIXME: this does not work */
- /*imageblit_copy(viewport_x,viewport_y,
+ imageblit_copy(viewport_x,viewport_y,
viewport_x+(viewport_w>>2),viewport_h+(viewport_h>>2),
- viewport_w>>1, viewport_h>>2
- );*/
+ viewport_w>>2, viewport_h>>2
+ );
/* mandatory, or we get PFIFO_CACHE_ERROR */
tcl_init();