meta: Clip src/dest rects in BlitFramebuffer, using the scissor
authorChris Forbes <chrisf@ijw.co.nz>
Wed, 16 Apr 2014 02:15:27 +0000 (14:15 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Thu, 17 Apr 2014 06:11:24 +0000 (18:11 +1200)
commitd1b6f6711095cd94e80372e7488aa0189e328d88
treed46e23a77a25e371138b14a62a292a8898ce09f4
parent9927180714662456ff7b895221f67112f2567a53
meta: Clip src/dest rects in BlitFramebuffer, using the scissor

Fixes piglit's fbo-blit-stretch test on drivers which use the meta path.
(i965: should fix Broadwell, but also fixes Sandybridge/Ivybridge/Haswell
since this test falls off the blorp path now due to format conversion)

V2: Use scissor instead of just mangling the rects, to avoid texcoord
rounding problems. (Thanks Marek)

V3: Rebase on Eric's CTSI meta changes; re-add _mesa_update_state in the
CTSI path so that _mesa_clip_blit sees the correct bounds.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77414
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Tested-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/common/meta.c
src/mesa/drivers/common/meta_blit.c