diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-10-13 17:16:04 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2010-10-13 17:16:04 -0400 |
commit | 2918df3a312fc600e83f84c298b9653d2eb3a8d5 (patch) | |
tree | 9aa39d85828374fdd83b8d5217c043c801885d61 /src | |
parent | 0d1f9fd03d0196dda5c1ce34b2e68b007c1874f2 (diff) |
evergreen: increase XV_CRTC Xv attribute range
Cover all 6 possible crtcs.
Diffstat (limited to 'src')
-rw-r--r-- | src/radeon_textured_video.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/radeon_textured_video.c b/src/radeon_textured_video.c index 0d8d2aae..36bcb562 100644 --- a/src/radeon_textured_video.c +++ b/src/radeon_textured_video.c @@ -614,6 +614,18 @@ static XF86AttributeRec Attributes_r600[NUM_ATTRIBUTES_R600+1] = {0, 0, 0, NULL} }; +static XF86AttributeRec Attributes_eg[NUM_ATTRIBUTES_R600+1] = +{ + {XvSettable | XvGettable, 0, 1, "XV_VSYNC"}, + {XvSettable | XvGettable, -1000, 1000, "XV_BRIGHTNESS"}, + {XvSettable | XvGettable, -1000, 1000, "XV_CONTRAST"}, + {XvSettable | XvGettable, -1000, 1000, "XV_SATURATION"}, + {XvSettable | XvGettable, -1000, 1000, "XV_HUE"}, + {XvSettable | XvGettable, 0, 1, "XV_COLORSPACE"}, + {XvSettable | XvGettable, -1, 5, "XV_CRTC"}, + {0, 0, 0, NULL} +}; + static Atom xvBicubic; static Atom xvVSync; static Atom xvBrightness, xvContrast, xvSaturation, xvHue; @@ -811,7 +823,11 @@ RADEONSetupImageTexturedVideo(ScreenPtr pScreen) pPortPriv = (RADEONPortPrivPtr)(&adapt->pPortPrivates[num_texture_ports]); - if (IS_R600_3D) { + if (IS_EVERGREEN_3D) { + adapt->pAttributes = Attributes_eg; + adapt->nAttributes = NUM_ATTRIBUTES_R600; + } + else if (IS_R600_3D) { adapt->pAttributes = Attributes_r600; adapt->nAttributes = NUM_ATTRIBUTES_R600; } |