From: Francisco Jerez Date: Sun, 21 Feb 2010 13:35:56 +0000 (+0100) Subject: dri/nouveau: Avoid mask overflow on nv04_surface_fill. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e4c0618a8e5f251b68e98af498a2a8ff787cc61;p=mesa.git dri/nouveau: Avoid mask overflow on nv04_surface_fill. --- diff --git a/src/mesa/drivers/dri/nouveau/nv04_surface.c b/src/mesa/drivers/dri/nouveau/nv04_surface.c index 86fa1dcd7a6..a219779b865 100644 --- a/src/mesa/drivers/dri/nouveau/nv04_surface.c +++ b/src/mesa/drivers/dri/nouveau/nv04_surface.c @@ -369,7 +369,7 @@ nv04_surface_fill(GLcontext *ctx, BEGIN_RING(chan, patt, NV04_IMAGE_PATTERN_COLOR_FORMAT, 1); OUT_RING (chan, rect_format(dst->format)); BEGIN_RING(chan, patt, NV04_IMAGE_PATTERN_MONOCHROME_COLOR1, 1); - OUT_RING (chan, mask | ~0 << (8 * dst->cpp)); + OUT_RING (chan, mask | ~0ll << (8 * dst->cpp)); BEGIN_RING(chan, rect, NV04_GDI_RECTANGLE_TEXT_COLOR_FORMAT, 1); OUT_RING (chan, rect_format(dst->format));