summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/xvmc/context.c
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2014-12-02 15:14:16 -0500
committerChristian König <christian.koenig@amd.com>2014-12-03 17:07:08 +0100
commita2f2eebfdfb9c19e45792101fc5cad3dd3f0f4d6 (patch)
tree4f8f938604092ff8708420071af4efbc9b41f89f /src/gallium/state_trackers/xvmc/context.c
parent712a4c5438d0ce257344b5196c20ad7929b54a0e (diff)
downloadexternal_mesa3d-a2f2eebfdfb9c19e45792101fc5cad3dd3f0f4d6.zip
external_mesa3d-a2f2eebfdfb9c19e45792101fc5cad3dd3f0f4d6.tar.gz
external_mesa3d-a2f2eebfdfb9c19e45792101fc5cad3dd3f0f4d6.tar.bz2
st/xvmc: Fix compiler warnings
Mostly signed/unsigned comparison Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'src/gallium/state_trackers/xvmc/context.c')
-rw-r--r--src/gallium/state_trackers/xvmc/context.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/xvmc/context.c b/src/gallium/state_trackers/xvmc/context.c
index 2329e2a..9ded2e5 100644
--- a/src/gallium/state_trackers/xvmc/context.c
+++ b/src/gallium/state_trackers/xvmc/context.c
@@ -67,7 +67,7 @@ static Status Validate(Display *dpy, XvPortID port, int surface_type_id,
*found_port = false;
- for (unsigned int i = 0; i < XScreenCount(dpy); ++i) {
+ for (int i = 0; i < XScreenCount(dpy); ++i) {
ret = XvQueryAdaptors(dpy, XRootWindow(dpy, i), &num_adaptors, &adaptor_info);
if (ret != Success)
return ret;
@@ -87,7 +87,7 @@ static Status Validate(Display *dpy, XvPortID port, int surface_type_id,
return BadAlloc;
}
- for (unsigned int l = 0; l < num_types && !found_surface; ++l) {
+ for (int l = 0; l < num_types && !found_surface; ++l) {
if (surface_info[l].surface_type_id != surface_type_id)
continue;
@@ -191,7 +191,7 @@ Status XvMCCreateContext(Display *dpy, XvPortID port, int surface_type_id,
Status ret;
struct vl_screen *vscreen;
struct pipe_context *pipe;
- struct pipe_video_codec templat = {};
+ struct pipe_video_codec templat = {0};
XvMCContextPrivate *context_priv;
vl_csc_matrix csc;