Fix edge-line artifacts issue on Mali
authorjoel.liang <joel.liang@arm.com>
Thu, 4 Jun 2015 13:52:29 +0000 (06:52 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 4 Jun 2015 13:52:29 +0000 (06:52 -0700)
commitd18bb23667d11db4779c13253a7e0cd90bf7a57f
treee72fa97ee26a1db880a402a829dbad31f1d5c7c3
parent64045423ddb0159cf857d55e25bad11026355902
Fix edge-line artifacts issue on Mali

Some GMs show edge-line artifacts on Mali at the bottom/right of the canvas.

Change the 'rtAdjustment' uniform precision from 'midiump' to 'highp' if the GPU vendor is ARM.

NOTE: Vertex Shader should have default 'highp' precision, but now we explicit declared some uniform/attribute precision as 'midiump'.

This patch should fix these issues:

Issue 3693: Some GMs produce random artifacts on Mali in MSAA4
    https://code.google.com/p/skia/issues/detail?id=3693

Issue 3685: srcmode GM has top/right line artifacts on Mali T604 in MSAA4
    https://code.google.com/p/skia/issues/detail?id=3685

BUG=skia:

Review URL: https://codereview.chromium.org/1154163012
src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp