radeon: add repeated register packet one
authorDave Airlie <airlied@redhat.com>
Thu, 29 Jan 2009 13:01:21 +0000 (23:01 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 29 Jan 2009 13:01:21 +0000 (23:01 +1000)
src/mesa/drivers/dri/radeon/common_cmdbuf.h

index e5d524f104a383a72fc6b1ed6a5d5eb98cfcd823..b4ed153d263a4471b0806ea4ff61e302e057adf9 100644 (file)
@@ -16,6 +16,7 @@ void rcommonBeginBatch(radeonContextPtr rmesa,
 
 #define CP_PACKET2  (2 << 30)
 #define CP_PACKET0(reg, n)     (RADEON_CP_PACKET0 | ((n)<<16) | ((reg)>>2))
+#define CP_PACKET0_ONE(reg, n) (RADEON_CP_PACKET0 | RADEON_CP_PACKET0_ONE_REG_WR | ((n)<<16) | ((reg)>>2))
 #define CP_PACKET3( pkt, n )                                           \
        (RADEON_CP_PACKET3 | (pkt) | ((n) << 16))