mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
drm/radeon/kms: fix incorrect comparison in cayman setup code.
This was leading to a bogus value being programmed to the backend routing register. Reviewed-by: Alex Deucher <[email protected]> cc: [email protected] Signed-off-by: Dave Airlie <[email protected]>
This commit is contained in:
parent
97bfd0acd3
commit
c289cff10a
1 changed files with 1 additions and 1 deletions
|
|
@ -417,7 +417,7 @@ static u32 cayman_get_tile_pipe_to_backend_map(struct radeon_device *rdev,
|
|||
num_shader_engines = 1;
|
||||
if (num_shader_engines > rdev->config.cayman.max_shader_engines)
|
||||
num_shader_engines = rdev->config.cayman.max_shader_engines;
|
||||
if (num_backends_per_asic > num_shader_engines)
|
||||
if (num_backends_per_asic < num_shader_engines)
|
||||
num_backends_per_asic = num_shader_engines;
|
||||
if (num_backends_per_asic > (rdev->config.cayman.max_backends_per_se * num_shader_engines))
|
||||
num_backends_per_asic = rdev->config.cayman.max_backends_per_se * num_shader_engines;
|
||||
|
|
|
|||
Loading…
Reference in a new issue