Commit a5c724f8 authored by José Hiram Soltren's avatar José Hiram Soltren Committed by Aaron Plattner
Browse files

Clarify type of source_surface as VDP_INVALID_HANDLE



(version 2, supercedes "Clarify type of source_surface")

VDPAU takes special action if source_surface is VDP_INVALID_HANDLE,
not if it is NULL, in both VdpOutputSurfaceRenderOutputSurface
and VdpOutputSurfaceRenderBitmapSurface.
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAaron Plattner <aplattner@nvidia.com>
parent 6cb973e5
......@@ -2231,8 +2231,8 @@ typedef struct {
* missing components are treated as 1.0. For example, for
* an A8 VdpOutputSurface, alpha will come from the surface
* but red, green and blue will be treated as 1.0. If
* source_surface is NULL, all components will be treated
* as 1.0. Note that destination_surface and
* source_surface is VDP_INVALID_HANDLE, all components will
* be treated as 1.0. Note that destination_surface and
* source_surface must have been allocated via the same
* \ref VdpDevice "VdpDevice".
* \param[in] source_rect The sub-rectangle of the source
......@@ -2311,8 +2311,8 @@ typedef VdpStatus VdpOutputSurfaceRenderOutputSurface(
* missing components are treated as 1.0. For example, for
* an A8 VdpBitmapSurface, alpha will come from the surface
* but red, green and blue will be treated as 1.0. If
* source_surface is NULL, all components will be treated
* as 1.0. Note that destination_surface and
* source_surface is VDP_INVALID_HANDLE, all components will
* be treated as 1.0. Note that destination_surface and
* source_surface must have been allocated via the same
* \ref VdpDevice "VdpDevice".
* \param[in] source_rect The sub-rectangle of the source
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment