[VDPAU] Interpretation of the VdpOutputSurfaceRender{Bitmap, Output}Surface spec

Emil Velikov emil.l.velikov at gmail.com
Tue Aug 26 10:31:10 PDT 2014


Hello list,

Having a closer look at the specification [1] of the two functions one can
observe the following

  "...If source_surface is NULL..."
yet it seems that the type of source_surface is a 32 bit unsigned:

  typedef uint32_t VdpBitmapSurface
  typedef uint32_t VdpOutputSurface


Which begs the question - by NULL do the spec actually mean 0 or
VDP_INVALID_HANDLE (0xffffffffU) ? I'm suspecting that either interpretation
might cause buggy behaviour in some (any?) programs that depends on the
particular functionality.

Any suggestions, recommendations how to tackle this ?

Cheers,
Emil

P.S. Props to Ilia Mirkin for pointing out the actual typedefs and Jean-Yves
Avenard who originally reported the bug [2] against mesa's vdpau implementation.


[1]
ftp://download.nvidia.com/XFree86/vdpau/doxygen/html/group___vdp_output_surface_render.html#gaf69e77f4d465d059341477a74ccebcd5
[2] https://bugs.freedesktop.org/show_bug.cgi?id=80561


More information about the VDPAU mailing list