diff options
author | Nicolai Hähnle <[email protected]> | 2016-07-29 17:59:11 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-08-08 12:53:06 +0200 |
commit | 96bbb620a5952828cabe27ef7eb3adaa3f2226f4 (patch) | |
tree | b1ad4bda2ecb580e27a28798f806c0b74543250b /src/gallium/drivers/radeonsi/si_pipe.c | |
parent | 5c343cce0f33e534481317ea99cf8192960d5e9f (diff) |
radeonsi: add has_draw_indirect_multi flag
Prefer to use DRAW_(INDEX)_INDIRECT_MULTI when available in the firmware.
Versions for SI and CI already added as provided by the firmware team, but
keep in mind that they won't currently be used since the radeon kernel module
has no interface to query the firmware version.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index e33823dcede..ffeeda3f2a3 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -785,6 +785,18 @@ struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws) sscreen->b.chip_class >= VI && sscreen->b.info.max_se >= 2; + sscreen->has_draw_indirect_multi = + (sscreen->b.family >= CHIP_POLARIS10) || + (sscreen->b.chip_class == VI && + sscreen->b.info.pfp_fw_version >= 121 && + sscreen->b.info.me_fw_version >= 87) || + (sscreen->b.chip_class == CIK && + sscreen->b.info.pfp_fw_version >= 211 && + sscreen->b.info.me_fw_version >= 173) || + (sscreen->b.chip_class == SI && + sscreen->b.info.pfp_fw_version >= 121 && + sscreen->b.info.me_fw_version >= 87); + sscreen->b.has_cp_dma = true; sscreen->b.has_streamout = true; pipe_mutex_init(sscreen->shader_parts_mutex); |