diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2014-01-17 21:41:38 -0500 |
---|---|---|
committer | Ilia Mirkin <imirkin@alum.mit.edu> | 2014-01-19 20:01:48 -0500 |
commit | 00e4314f6d605e467b9a386cacab7eec48b9e429 (patch) | |
tree | bdfcba2090e0d32e57ececf407c3eefebe99c1ea /src/gallium/state_trackers/vdpau | |
parent | ad3c99e22a688b7c3f15894aabbedcc5cd89230b (diff) | |
download | external_mesa3d-00e4314f6d605e467b9a386cacab7eec48b9e429.zip external_mesa3d-00e4314f6d605e467b9a386cacab7eec48b9e429.tar.gz external_mesa3d-00e4314f6d605e467b9a386cacab7eec48b9e429.tar.bz2 |
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 <imirkin@alum.mit.edu>
Cc: 10.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'src/gallium/state_trackers/vdpau')
-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 e029a9f..def1e2a 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; |