From 30cc457394597978c7a6e6a198c975edbc1f88e8 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Fri, 10 Feb 2012 17:40:37 +0800 Subject: glamor_tile/composite: Modify fs to re-calculate texture coords. Then we don't need to fixup the larger pixmap to the exact size, just need to let the shader to re-calculate the correct texture coords. Signed-off-by: Zhigang Gong --- src/glamor_priv.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/glamor_priv.h') diff --git a/src/glamor_priv.h b/src/glamor_priv.h index 05bb18a..0d3aa82 100644 --- a/src/glamor_priv.h +++ b/src/glamor_priv.h @@ -64,6 +64,8 @@ typedef struct glamor_composite_shader { GLint dest_to_mask_uniform_location; GLint source_uniform_location; GLint mask_uniform_location; + GLint source_wh; + GLint mask_wh; } glamor_composite_shader; typedef struct { @@ -203,6 +205,7 @@ typedef struct glamor_screen_private { /* glamor_tile */ GLint tile_prog; + GLint tile_wh; /* glamor_putimage */ GLint put_image_xybitmap_prog; -- cgit v1.2.3