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 13:57:30 +0000 (14:57 +0100)
commite90beb93a89f77bffce8ab3d54457ea65868e93c
treed4711ab8e9cd8c3af23a93293b625b72559f8845
parent507f4e7a7448fb246febefe8819b7b3ac70a35b4
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