mesa/st: keep surface_copy arguments positive
authorKeith Whitwell <keithw@vmware.com>
Thu, 7 May 2009 18:48:06 +0000 (19:48 +0100)
committerKeith Whitwell <keithw@vmware.com>
Fri, 8 May 2009 09:04:14 +0000 (10:04 +0100)
commitd5c2ad8514ce8064d83febf647c9e726788b7924
tree4ffde99d8e6e0eafd57ede40cbde705c1f508151
parent6826bad6a75e78729dd472ea26c87787c90ada4c
mesa/st: keep surface_copy arguments positive

The src/dest x,y, and w,h arguments of the pipe->surface_copy
function are unsigned and the drivers aren't expecting negative
(or extremly-large unsigned) values as inputs.  Trim the requests
at the state-tracker level before passing down.
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_texture.c