diff options
author | Dave Airlie <[email protected]> | 2010-09-16 09:41:43 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2010-09-16 09:41:43 +1000 |
commit | 1a20aae581dae3d8d733f7f18414737a6924e981 (patch) | |
tree | 103022421af14aa17f708c6d50fd970f309823be | |
parent | 3ead528bbbbc59aa22e951c10cdeb1f7b54de87f (diff) |
r600g: add vgt dma src defines
-rw-r--r-- | src/gallium/drivers/r600/r600_draw.c | 6 | ||||
-rw-r--r-- | src/gallium/drivers/r600/r600d.h | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/r600/r600_draw.c b/src/gallium/drivers/r600/r600_draw.c index 17cc5a4abbc..d0de1658ba1 100644 --- a/src/gallium/drivers/r600/r600_draw.c +++ b/src/gallium/drivers/r600/r600_draw.c @@ -54,15 +54,15 @@ static int r600_draw_common(struct r600_draw *draw) return r; switch (draw->index_size) { case 2: - vgt_draw_initiator = 0; + vgt_draw_initiator = S_0287F0_SOURCE_SELECT(V_0287F0_DI_SRC_SEL_DMA); vgt_dma_index_type = 0; break; case 4: - vgt_draw_initiator = 0; + vgt_draw_initiator = S_0287F0_SOURCE_SELECT(V_0287F0_DI_SRC_SEL_DMA); vgt_dma_index_type = 1; break; case 0: - vgt_draw_initiator = 2; + vgt_draw_initiator = S_0287F0_SOURCE_SELECT(V_0287F0_DI_SRC_SEL_AUTO_INDEX); vgt_dma_index_type = 0; break; default: diff --git a/src/gallium/drivers/r600/r600d.h b/src/gallium/drivers/r600/r600d.h index 259927e5fa0..8ef007494d6 100644 --- a/src/gallium/drivers/r600/r600d.h +++ b/src/gallium/drivers/r600/r600d.h @@ -831,6 +831,8 @@ #define S_0287F0_SOURCE_SELECT(x) (((x) & 0x3) << 0) #define G_0287F0_SOURCE_SELECT(x) (((x) >> 0) & 0x3) #define C_0287F0_SOURCE_SELECT 0xFFFFFFFC +#define V_0287F0_DI_SRC_SEL_DMA 0 +#define V_0287F0_DI_SRC_SEL_AUTO_INDEX 2 #define S_0287F0_MAJOR_MODE(x) (((x) & 0x3) << 2) #define G_0287F0_MAJOR_MODE(x) (((x) >> 2) & 0x3) #define C_0287F0_MAJOR_MODE 0xFFFFFFF3 |