summaryrefslogtreecommitdiff
path: root/glamor/glamor_core.c
diff options
context:
space:
mode:
authorJunyan He <junyan.he@linux.intel.com>2012-05-15 10:08:03 +0800
committerEric Anholt <eric@anholt.net>2013-12-18 11:23:51 -0800
commit4c174f4c9ce1514ef226e9de97e5c87a46a75524 (patch)
tree6b1929e6b22c8dc90809a589b04ce7abdf305a89 /glamor/glamor_core.c
parent553910d08b93ef80cc25fcbfd7876726778bc655 (diff)
Fix the problem of x_source and y_source causing radial error
The x_source and y_source cause some problem in gradient. The old way to handle it by recaulate P1 P2 to minus the x_source and y_source, but this causes problem in radial shader. Now we modify the manner to set the texture coordinates: (x_source, y_source) --> (x_source + width, y_source + height) to handle all the cases. Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com> Signed-off-by: Junyan He <junyan.he@linux.intel.com> Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'glamor/glamor_core.c')
0 files changed, 0 insertions, 0 deletions