gallium: Make (num_)samples an unsigned int
authorGert Wollny <gw.fossdev@gmail.com>
Thu, 18 Jan 2018 08:57:26 +0000 (09:57 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 19 Jan 2018 15:45:57 +0000 (15:45 +0000)
commitd0e37599ab822b54ca231b7f155f92156854681d
tree6271791495c83dcc08ae905cfec81e8b5bb3e91b
parent7a2c87177ada941259bf35a982e67bfea0dd1d26
gallium: Make (num_)samples an unsigned int

According to the ARB_multisample num_samples is a non-negative integer.
Consequently define it as such, fail in glx/choose_visual if a negative
number is given.

v2: split patch into gallium and mesa part

Signed-off-by: Gert Wollny <gw.fossdev@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/include/state_tracker/st_api.h
src/gallium/state_trackers/glx/xlib/glx_api.c