diff options
author | Ilia Mirkin <[email protected]> | 2014-01-17 21:41:38 -0500 |
---|---|---|
committer | Carl Worth <[email protected]> | 2014-01-25 16:46:11 -0800 |
commit | e2b6834c87d714248b119e2a79eb2b9c7faba701 (patch) | |
tree | e291876a462b68d888f5a2bacdbb41a20e37f9c5 /src | |
parent | 04e5f2e94f5628fa8009029255c91e6bf84ec7da (diff) |
st/vdpau: don't return a device if the screen doesn't support NPOT
NV3x cards don't support NPOT textures. Technically this restriction
could be worked around, but since it also doesn't expose any video
decoding hw, just turn it off entirely.
Signed-off-by: Ilia Mirkin <[email protected]>
Cc: 10.0 <[email protected]>
Reviewed-by: Christian König <[email protected]>
(cherry picked from commit 00e4314f6d605e467b9a386cacab7eec48b9e429)
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/vdpau/device.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/vdpau/device.c b/src/gallium/state_trackers/vdpau/device.c index fb9c68c26e0..36ac11a8a93 100644 --- a/src/gallium/state_trackers/vdpau/device.c +++ b/src/gallium/state_trackers/vdpau/device.c @@ -72,6 +72,11 @@ vdp_imp_device_create_x11(Display *display, int screen, VdpDevice *device, goto no_context; } + if (!pscreen->get_param(pscreen, PIPE_CAP_NPOT_TEXTURES)) { + ret = VDP_STATUS_NO_IMPLEMENTATION; + goto no_context; + } + *device = vlAddDataHTAB(dev); if (*device == 0) { ret = VDP_STATUS_ERROR; |