OSDN Git Service

radeonsi: always prefer SWITCH_ON_EOP(0) on CIK
authorMarek Olšák <marek.olsak@amd.com>
Wed, 6 Aug 2014 01:18:06 +0000 (03:18 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 9 Aug 2014 21:41:15 +0000 (23:41 +0200)
commit0e229b8c5aa5eb758cbc9e1176001e0f4d985a6a
treedc448e783eed592996cad5ec5ca3d1fdf392de25
parent515269b3a73cd64ac9c017e8b3c698be9a5383f6
radeonsi: always prefer SWITCH_ON_EOP(0) on CIK

The code is rewritten to take known constraints into account, while always
using 0 by default.

This should improve performance for multi-SE parts in theory.

A debug option is also added for easier debugging. (If there are hangs,
use the option. If the hangs go away, you have found the problem.)

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
v2: fix a typo, set max_se for evergreen GPUs according to the kernel driver
src/gallium/drivers/radeon/r600_pipe_common.c
src/gallium/drivers/radeon/r600_pipe_common.h
src/gallium/drivers/radeonsi/si_state_draw.c
src/gallium/winsys/radeon/drm/radeon_drm_winsys.c