summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/radeon/drm
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-05-12 01:04:56 +0200
committerNicolai Hähnle <[email protected]>2017-05-18 11:48:53 +0200
commit6c01c4b907fa43daaca6d0c0e23db4787611a165 (patch)
tree937c8073444243d36ea3340d4f7723ab937ccb41 /src/gallium/winsys/radeon/drm
parentc488bf24ed47b98c580e162e8457bff7d6f57ed3 (diff)
ac: add radeon_info::num_{sdma,compute}_rings
Vulkan needs them. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/winsys/radeon/drm')
-rw-r--r--src/gallium/winsys/radeon/drm/radeon_drm_winsys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
index 2e7bfe90423..ff22b6559ab 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
+++ b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
@@ -305,10 +305,10 @@ static bool do_winsys_init(struct radeon_drm_winsys *ws)
}
/* Check for dma */
- ws->info.has_sdma = false;
+ ws->info.num_sdma_rings = 0;
/* DMA is disabled on R700. There is IB corruption and hangs. */
if (ws->info.chip_class >= EVERGREEN && ws->info.drm_minor >= 27) {
- ws->info.has_sdma = true;
+ ws->info.num_sdma_rings = 1;
}
/* Check for UVD and VCE */