diff options
author | Dave Airlie <airlied@redhat.com> | 2012-05-26 13:11:01 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-07-07 10:37:45 +0100 |
commit | 12905dfaf01088a00f4a0a78cffba03329e7b724 (patch) | |
tree | cdc23a5354e8484c6a36899f457838927c1132e2 /randr | |
parent | a7c01da54ab43f9d29333ccbd79dfc001f9dc5e3 (diff) |
dix/xf86: initial offload slave tracking (v1.1)
add the linked list and provider hooks.
v1.1: add another assert in the add path.
Reviewed-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'randr')
-rw-r--r-- | randr/rrprovider.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/randr/rrprovider.c b/randr/rrprovider.c index f35ca6a1d..8385d3f5f 100644 --- a/randr/rrprovider.c +++ b/randr/rrprovider.c @@ -76,6 +76,10 @@ ProcRRGetProviders (ClientPtr client) pScrPriv = rrGetScrPriv(iter); total_providers += pScrPriv->provider ? 1 : 0; } + xorg_list_for_each_entry(iter, &pScreen->offload_slave_list, offload_head) { + pScrPriv = rrGetScrPriv(iter); + total_providers += pScrPriv->provider ? 1 : 0; + } xorg_list_for_each_entry(iter, &pScreen->unattached_list, unattached_head) { pScrPriv = rrGetScrPriv(iter); total_providers += pScrPriv->provider ? 1 : 0; @@ -112,6 +116,9 @@ ProcRRGetProviders (ClientPtr client) xorg_list_for_each_entry(iter, &pScreen->output_slave_list, output_head) { ADD_PROVIDER(iter); } + xorg_list_for_each_entry(iter, &pScreen->offload_slave_list, offload_head) { + ADD_PROVIDER(iter); + } xorg_list_for_each_entry(iter, &pScreen->unattached_list, unattached_head) { ADD_PROVIDER(iter); } |