drm/radeon: Allow setting shader registers using DMA/COPY packet3 on SI.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 15 Apr 2016 00:47:49 +0000 (02:47 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 May 2016 00:23:15 +0000 (20:23 -0400)
commit3d02b7fee9c3ece1746f5b06c4143b511383fc6b
tree8a15635277e2b10b6bd5c282107d975a39b74e76
parentb76af4a41927994e130500659866efbd992deb9d
drm/radeon: Allow setting shader registers using DMA/COPY packet3 on SI.

Mesa uses a COPY_DATA packet to copy the grid size for indirect dispatches
into COMPUTE_USER_DATA_*.

Setting those registers with a SET_SH_REG packet is allowed, not allowing
them with other packets seems like an oversight.

v2: Clarify commit message.

Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_drv.c
drivers/gpu/drm/radeon/si.c