[waffle] [PATCH] core, man: Fix range and default value of WAFFLE_*_SIZE attrs

Paul Berry stereotype441 at gmail.com
Thu Jan 3 09:13:20 PST 2013


On 28 December 2012 11:49, Chad Versace <chad.versace at linux.intel.com>wrote:

> For each of the WAFFLE_*_SIZE attributes:
>   - change the default value from WAFFLE_DONT_CARE(-1) to 0, and
>   - change the valid range of values from [-1, +inf) to [0, +inf).
>
> This change aligns waffle's behavior to that of GLX [1], EGL [2], and (if
> I interpreted the CGL documentation correctly) CGL [3].
>
> This fixes a bug where, if the user didn't specify the value of a size
> attribute, then waffle passed WAFFLE_DONT_CARE(-1) to glXChooseFBConfig
> and eglChooseConfig. Per the GLX, EGL specs, -1 is an illegal value for
> size attributes.
>
> [1] GLX 1.4 spec (2005.12.16), Table 3.4
> [2] EGL 1.4 spec (2011.04.06), Table 3.4
> [3]
> https://developer.apple.com/library/mac/documentation/graphicsimaging/reference/CGL_OpenGL/Reference/reference.html#//apple_ref/c/func/CGLChoosePixelFormat
>
> Reported-by: Brian Paul <brian.e.paul at gmail.com>
> Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
>

After this commit, I get the following errors from "make check":

test: failed tests:
  wcore_config_attrs.gl_defaults
  wcore_config_attrs.gles1_defaults
  wcore_config_attrs.gles2_defaults
  wcore_config_attrs.gles3_defaults
  wcore_config_attrs.color_buffer_size
  wcore_config_attrs.double_buffered_is_true
  wcore_config_attrs.double_buffered_is_false


Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/waffle/attachments/20130103/5f6657bc/attachment.html>


More information about the waffle mailing list