aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-03-05 16:50:09 -0500
committerRob Clark <[email protected]>2016-03-13 12:23:41 -0400
commitb3fe196e21dbbb51e62ed42dce890ada2bfd6db8 (patch)
tree18fe870e94f1eac562dd0197d2564b43eac44837 /src/gallium/drivers/freedreno
parent2224ba597629b299e8601a137ead54ad5d93c489 (diff)
freedreno/a4xx: use generated headers for draw initiator
No need to open-code this. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r--src/gallium/drivers/freedreno/a4xx/fd4_draw.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_draw.h b/src/gallium/drivers/freedreno/a4xx/fd4_draw.h
index a6c56404a8a..2b23e33b42f 100644
--- a/src/gallium/drivers/freedreno/a4xx/fd4_draw.h
+++ b/src/gallium/drivers/freedreno/a4xx/fd4_draw.h
@@ -41,9 +41,10 @@ static inline uint32_t DRAW4(enum pc_di_primtype prim_type,
enum pc_di_src_sel source_select, enum a4xx_index_size index_size,
enum pc_di_vis_cull_mode vis_cull_mode)
{
- return (prim_type << 0) |
- (source_select << 6) |
- (index_size << 10);
+ return CP_DRAW_INDX_OFFSET_0_PRIM_TYPE(prim_type) |
+ CP_DRAW_INDX_OFFSET_0_SOURCE_SELECT(source_select) |
+ CP_DRAW_INDX_OFFSET_0_INDEX_SIZE(index_size) |
+ CP_DRAW_INDX_OFFSET_0_VIS_CULL(vis_cull_mode);
}
static inline void