[Mesa-dev] [PATCH 1/3] mesa: make Visual.samples to be of type unsigned int and propagate this
Emil Velikov
emil.l.velikov at gmail.com
Tue Jan 16 15:10:26 UTC 2018
On 15 January 2018 at 16:10, Gert Wollny <gw.fossdev at gmail.com> wrote:
> According to the ARB_multisample Visual.samples is a non-negative Integer.
> Consequently define it, and related functions and values as such and fail
> in glx/choose_visual if a negative number is given.
>
> Signed-off-by: Gert Wollny <gw.fossdev at gmail.com>
> ---
> The patch was motivated by Emil:
> https://lists.freedesktop.org/archives/mesa-dev/2017-November/177218.html
>
Thanks Gert.
> It should be noted that the sample count was already converted to unsigned in
> many places, e.g. in XMesaCreateVisual when passing it to
> pipe_screen::is_format_supported.
>
> PS: I have not commit rights.
>
> src/gallium/include/state_tracker/st_api.h | 2 +-
> src/gallium/state_trackers/glx/xlib/glx_api.c | 8 ++++++--
> src/mesa/main/context.c | 4 ++--
> src/mesa/main/context.h | 4 ++--
> src/mesa/main/mtypes.h | 2 +-
> src/mesa/main/multisample.c | 2 +-
> 6 files changed, 13 insertions(+), 9 deletions(-)
>
Please split this in two patches ("mesa: ..." and "gallium: ..."),
updating st_new_renderbuffer_fb as part of the latter patch.
Mildly related: brw_context::num_samples should be unsigned as well.
-Emil
More information about the mesa-dev
mailing list