summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vdpau/surface.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2011-04-03 00:14:38 +0200
committerChristian König <[email protected]>2011-04-03 00:14:38 +0200
commite6d41e4d0326cac60b49e149d86d0f95c2518045 (patch)
tree7b90c60242935647accc58e03dee8197aa8bb904 /src/gallium/state_trackers/vdpau/surface.c
parentd5b05a869a71147987a1c1d6c84f8df17148f031 (diff)
[g3dvl] start to cleanup the mess and provide at least basic functionality
Diffstat (limited to 'src/gallium/state_trackers/vdpau/surface.c')
-rw-r--r--src/gallium/state_trackers/vdpau/surface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/vdpau/surface.c b/src/gallium/state_trackers/vdpau/surface.c
index e63e631fd83..aa8f90d576a 100644
--- a/src/gallium/state_trackers/vdpau/surface.c
+++ b/src/gallium/state_trackers/vdpau/surface.c
@@ -63,7 +63,7 @@ vlVdpVideoSurfaceCreate(VdpDevice device, VdpChromaType chroma_type,
goto inv_device;
}
- p_surf->chroma_format = TypeToPipe(chroma_type);
+ p_surf->chroma_format = ChromaToPipe(chroma_type);
p_surf->device = dev;
p_surf->width = width;
p_surf->height = height;
@@ -124,7 +124,7 @@ vlVdpVideoSurfaceGetParameters(VdpVideoSurface surface,
*width = p_surf->width;
*height = p_surf->height;
- *chroma_type = PipeToType(p_surf->chroma_format);
+ *chroma_type = PipeToChroma(p_surf->chroma_format);
return VDP_STATUS_OK;
}