diff options
author | Rob Clark <[email protected]> | 2018-10-12 16:29:22 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-10-17 12:44:48 -0400 |
commit | a50a9a44e81b4479d0f49ef6a3ce6d6d4656227c (patch) | |
tree | ef78ef280d8715c37a3f15ced5dcca5ab035ba9f /src/gallium | |
parent | d9dbc9c21f17e4c86f8e366fbe225df39e3b7b59 (diff) |
freedreno/a6xx: remove vismode param
We don't need to keep this IGNORE_VISIBILITY in binning pass. Prep work
for using single cmdstream for both draw and binning passes.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/freedreno/a6xx/fd6_draw.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_draw.c b/src/gallium/drivers/freedreno/a6xx/fd6_draw.c index f758645548e..adb1e4ea1bb 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_draw.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_draw.c @@ -46,7 +46,6 @@ static void draw_emit_indirect(struct fd_batch *batch, struct fd_ringbuffer *ring, enum pc_di_primtype primtype, - enum pc_di_vis_cull_mode vismode, const struct pipe_draw_info *info, unsigned index_offset) { @@ -77,7 +76,6 @@ draw_emit_indirect(struct fd_batch *batch, struct fd_ringbuffer *ring, static void draw_emit(struct fd_batch *batch, struct fd_ringbuffer *ring, enum pc_di_primtype primtype, - enum pc_di_vis_cull_mode vismode, const struct pipe_draw_info *info, unsigned index_offset) { @@ -97,11 +95,7 @@ draw_emit(struct fd_batch *batch, struct fd_ringbuffer *ring, 0x2000; OUT_PKT7(ring, CP_DRAW_INDX_OFFSET, 7); - if (vismode == USE_VISIBILITY) { - OUT_RINGP(ring, draw, &batch->draw_patches); - } else { - OUT_RING(ring, draw); - } + OUT_RINGP(ring, draw, &batch->draw_patches); OUT_RING(ring, info->instance_count); /* NumInstances */ OUT_RING(ring, info->count); /* NumIndices */ OUT_RING(ring, 0x0); /* XXX */ @@ -116,11 +110,7 @@ draw_emit(struct fd_batch *batch, struct fd_ringbuffer *ring, 0x2000; OUT_PKT7(ring, CP_DRAW_INDX_OFFSET, 3); - if (vismode == USE_VISIBILITY) { - OUT_RINGP(ring, draw, &batch->draw_patches); - } else { - OUT_RING(ring, draw); - } + OUT_RINGP(ring, draw, &batch->draw_patches); OUT_RING(ring, info->instance_count); /* NumInstances */ OUT_RING(ring, info->count); /* NumIndices */ } @@ -156,11 +146,9 @@ draw_impl(struct fd_context *ctx, struct fd_ringbuffer *ring, if (info->indirect) { draw_emit_indirect(ctx->batch, ring, primtype, - emit->binning_pass ? IGNORE_VISIBILITY : USE_VISIBILITY, info, index_offset); } else { draw_emit(ctx->batch, ring, primtype, - emit->binning_pass ? IGNORE_VISIBILITY : USE_VISIBILITY, info, index_offset); } |