diff options
author | Ilia Mirkin <[email protected]> | 2015-03-17 01:02:32 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-03-28 14:54:41 -0400 |
commit | 995f55a6cedfd47a2aed75178a1b0caed7059f20 (patch) | |
tree | d04dc337c527a61aaef5d90ef2fe0b93641e9ca5 /src/gallium/drivers/freedreno/freedreno_draw.h | |
parent | 7fc5da8b9392042b5f8a989d2afa49ea1944f9a9 (diff) |
freedreno/a3xx: make vs-set point size work
This appears to need the A2XX version of the point list, so select it at
draw time if necessary.
Experimentally, always using the A2XX version causes hangs when PSIZE
isn't actually emitted.
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_draw.h')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_draw.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_draw.h b/src/gallium/drivers/freedreno/freedreno_draw.h index 25e102f5067..3224fb14652 100644 --- a/src/gallium/drivers/freedreno/freedreno_draw.h +++ b/src/gallium/drivers/freedreno/freedreno_draw.h @@ -113,6 +113,7 @@ size2indextype(unsigned index_size) /* this is same for a2xx/a3xx, so split into helper: */ static inline void fd_draw_emit(struct fd_context *ctx, struct fd_ringbuffer *ring, + enum pc_di_primtype primtype, enum pc_di_vis_cull_mode vismode, const struct pipe_draw_info *info) { @@ -138,7 +139,7 @@ fd_draw_emit(struct fd_context *ctx, struct fd_ringbuffer *ring, src_sel = DI_SRC_SEL_AUTO_INDEX; } - fd_draw(ctx, ring, ctx->primtypes[info->mode], vismode, src_sel, + fd_draw(ctx, ring, primtype, vismode, src_sel, info->count, info->instance_count - 1, idx_type, idx_size, idx_offset, idx_bo); } |