summaryrefslogtreecommitdiff
path: root/src/glamor_priv.h
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@linux.intel.com>2012-02-10 17:40:37 +0800
committerZhigang Gong <zhigang.gong@linux.intel.com>2012-02-13 18:21:27 +0800
commit30cc457394597978c7a6e6a198c975edbc1f88e8 (patch)
tree0635b77578670737ae72fb5ddcb46bad875579d6 /src/glamor_priv.h
parent12e0a5670f23d7cea04eb9cd1895c4eac3ed20c8 (diff)
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 <zhigang.gong@linux.intel.com>
Diffstat (limited to 'src/glamor_priv.h')
-rw-r--r--src/glamor_priv.h3
1 files changed, 3 insertions, 0 deletions
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;