i965/blorp: Define a function to clamp texture coordinates
authorAnuj Phogat <anuj.phogat@gmail.com>
Thu, 18 Jul 2013 21:59:29 +0000 (14:59 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 16 Aug 2013 16:46:15 +0000 (09:46 -0700)
commitaff371b634b574cc56bd91464365a50c8bcb42fe
treeea4e1db61a775ab10cc17989cd3ef1d7734544f1
parent6066fb1721e937ebb1ab48034e744c17a9ee78b5
i965/blorp: Define a function to clamp texture coordinates

New function clamp_tex_coords() clamps the texture coordinates
to texture boundaries.  This function will also be utilized later
for the BLORP implementation of single-sample scaled blit with
bilinear filter.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp