summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-05-02 19:39:08 -0400
committerMarek Olšák <[email protected]>2018-05-10 18:40:07 -0400
commit125adc92adce078c1a00a25735145dbfb88afc65 (patch)
treeddc54ca5b9f4b515c77f4efa560c303ff6ea4a8b /src/gallium/winsys
parent8b9694da4b5079bca76191678ad34e90651a5fca (diff)
ac/gpu_info: add has_unaligned_shader_loads
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/radeon/drm/radeon_drm_winsys.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
index 129d4f46f5b..7a55fca3020 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
+++ b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
@@ -544,6 +544,9 @@ static bool do_winsys_init(struct radeon_drm_winsys *ws)
ws->info.has_indirect_compute_dispatch = ws->info.chip_class == CIK ||
(ws->info.chip_class == SI &&
ws->info.drm_minor >= 45);
+ /* SI doesn't support unaligned loads. */
+ ws->info.has_unaligned_shader_loads = ws->info.chip_class == CIK &&
+ ws->info.drm_minor >= 50;
ws->check_vm = strstr(debug_get_option("R600_DEBUG", ""), "check_vm") != NULL;