diff options
author | Ilia Mirkin <[email protected]> | 2014-10-22 00:42:04 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-02-19 00:25:03 -0500 |
commit | 2c6e3d822ba6f03fe208da3c6228d796895b3008 (patch) | |
tree | 99dd684ea38f62dc0e8c28ab41fa8d8b30acd1cd /src/gallium/drivers/freedreno/freedreno_util.h | |
parent | e4ddfeea65725a44446f4febe8718d7e378f50fe (diff) |
freedreno: pass number of instances to draw
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_util.h')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_util.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_util.h b/src/gallium/drivers/freedreno/freedreno_util.h index 0abc53f6a8b..ec1db94f649 100644 --- a/src/gallium/drivers/freedreno/freedreno_util.h +++ b/src/gallium/drivers/freedreno/freedreno_util.h @@ -85,14 +85,16 @@ extern bool fd_binning_enabled; static inline uint32_t DRAW(enum pc_di_primtype prim_type, enum pc_di_src_sel source_select, enum pc_di_index_size index_size, - enum pc_di_vis_cull_mode vis_cull_mode) + enum pc_di_vis_cull_mode vis_cull_mode, + uint8_t instances) { return (prim_type << 0) | (source_select << 6) | ((index_size & 1) << 11) | ((index_size >> 1) << 13) | (vis_cull_mode << 9) | - (1 << 14); + (1 << 14) | + (instances << 24); } /* for tracking cmdstream positions that need to be patched: */ |