[Mesa-dev] [PATCH] mesa/st: don't advertise NV_vdpau_interop if it doesn't work.
Christian König
deathsimple at vodafone.de
Fri Aug 29 02:59:36 PDT 2014
From: Christian König <christian.koenig at amd.com>
As long as we don't have a workaround for field based
decoding in VDPAu we should not advertise NV_vdpau_interop.
Signed-off-by: Christian König <christian.koenig at amd.com>
Cc: mesa-stable at lists.freedesktop.org
---
src/mesa/state_tracker/st_extensions.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 9db648c..951c9bf 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -621,7 +621,6 @@ void st_init_extensions(struct pipe_screen *screen,
extensions->NV_fog_distance = GL_TRUE;
extensions->NV_texture_env_combine4 = GL_TRUE;
extensions->NV_texture_rectangle = GL_TRUE;
- extensions->NV_vdpau_interop = GL_TRUE;
extensions->OES_EGL_image = GL_TRUE;
extensions->OES_EGL_image_external = GL_TRUE;
@@ -884,4 +883,10 @@ void st_init_extensions(struct pipe_screen *screen,
PIPE_BIND_SAMPLER_VIEW)) {
extensions->ARB_ES3_compatibility = GL_TRUE;
}
+
+ if (screen->get_video_param(screen, PIPE_VIDEO_PROFILE_UNKNOWN,
+ PIPE_VIDEO_ENTRYPOINT_BITSTREAM,
+ PIPE_VIDEO_CAP_SUPPORTS_INTERLACED)) {
+ extensions->NV_vdpau_interop = GL_TRUE;
+ }
}
--
1.9.1
More information about the mesa-dev
mailing list