diff options
author | Lyude <lyude@redhat.com> | 2016-12-12 13:25:39 -0500 |
---|---|---|
committer | Lyude <lyude@redhat.com> | 2016-12-13 10:13:48 -0500 |
commit | 3ccce99281eaef560334300bb025b770b49ed9b1 (patch) | |
tree | e969186d55575809e8c3725776b3c32b2dac8d50 /lib/sw_sync.h | |
parent | 6e716b7f5768bb0218d2b5934472ed462560f13b (diff) |
igt_kms: Dynamically allocate igt_display->pipes
Many GPUs have more then 3 pipes available, so hard limiting this to
I915_MAX_PIPES prevents us from using anything that relies on
igt_display_init() on non-intel systems (since we end up writing out of
bounds and seg faulting). Fix this by dynamically allocating
igt_display->pipes using the number of pipes we've detected on the GPU.
Signed-off-by: Lyude <lyude@redhat.com>
Reviewed-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Diffstat (limited to 'lib/sw_sync.h')
0 files changed, 0 insertions, 0 deletions