Replacing some RADEON cmd types with r300 counterparts.
authorAapo Tahkola <aet@rasterburn.org>
Tue, 8 Mar 2005 22:29:45 +0000 (22:29 +0000)
committerAapo Tahkola <aet@rasterburn.org>
Tue, 8 Mar 2005 22:29:45 +0000 (22:29 +0000)
src/mesa/drivers/dri/r300/r300_cmdbuf.c
src/mesa/drivers/dri/r300/r300_texmem.c

index 08551b0f5f65fc94d148beda384e9da6e08cf93d..3fe69c3b2eb3ec9a6602ca5a0c2a0f04ffee1176 100644 (file)
@@ -604,7 +604,7 @@ void r300EmitBlit(r300ContextPtr rmesa,
            (drm_radeon_cmd_header_t *) r300AllocCmdBuf(rmesa, 8 * sizeof(int),
                                                        __FUNCTION__);
 
-       cmd[0].header.cmd_type = RADEON_CMD_PACKET3;
+       cmd[0].header.cmd_type = R300_CMD_PACKET3;
        cmd[1].i = R200_CP_CMD_BITBLT_MULTI | (5 << 16);
        cmd[2].i = (RADEON_GMC_SRC_PITCH_OFFSET_CNTL |
                    RADEON_GMC_DST_PITCH_OFFSET_CNTL |
@@ -627,7 +627,7 @@ void r300EmitWait(r300ContextPtr rmesa, GLuint flags)
        if (rmesa->radeon.dri.drmMinor >= 6) {
                drm_radeon_cmd_header_t *cmd;
 
-               assert(!(flags & ~(RADEON_WAIT_2D | RADEON_WAIT_3D)));
+               assert(!(flags & ~(R300_WAIT_2D | R300_WAIT_3D)));
 
                cmd =
                    (drm_radeon_cmd_header_t *) r300AllocCmdBuf(rmesa,
index de011d7e39ab496b29996cc02043f8be401ad240..5c70e2e3c5401259788622be063952b61274f326 100644 (file)
@@ -140,7 +140,7 @@ static void r300UploadGARTClientSubImage(r300ContextPtr rmesa,
        width = texImage->Width;
        height = texImage->Height;
 
-       r300EmitWait(rmesa, RADEON_WAIT_3D);
+       r300EmitWait(rmesa, R300_WAIT_3D);
 
        r300EmitBlit(rmesa, blit_format,
                     srcPitch,
@@ -152,7 +152,7 @@ static void r300UploadGARTClientSubImage(r300ContextPtr rmesa,
                     t->image[0][hwlevel].x + x,
                     t->image[0][hwlevel].y + y, width, height);
 
-       r300EmitWait(rmesa, RADEON_WAIT_2D);
+       r300EmitWait(rmesa, R300_WAIT_2D);
 }
 
 static void r300UploadRectSubImage(r300ContextPtr rmesa,
@@ -254,7 +254,7 @@ static void r300UploadRectSubImage(r300ContextPtr rmesa,
                                }
                        }
 
-                       r300EmitWait(rmesa, RADEON_WAIT_3D);
+                       r300EmitWait(rmesa, R300_WAIT_3D);
 
                        /* Blit to framebuffer
                         */
@@ -264,7 +264,7 @@ static void r300UploadRectSubImage(r300ContextPtr rmesa,
                                     dstPitch, t->bufAddr,
                                     0, 0, 0, done, width, lines);
 
-                       r300EmitWait(rmesa, RADEON_WAIT_2D);
+                       r300EmitWait(rmesa, R300_WAIT_2D);
 
                        r300ReleaseDmaRegion(rmesa, &region, __FUNCTION__);
                        done += lines;