mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-28 21:33:09 +00:00
Prepare for modification of gradient using shader.
Prepare for modification of gradient using shader. The gradient pixmaps now is generated by pixman and we will replace them with shader. Add structure fields and dispatch functions which will be needed. Some auxiliary macro for vertex convert. Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com> Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
parent
a57bf66d49
commit
ccf5d7f52b
6 changed files with 78 additions and 7 deletions
|
|
@ -389,6 +389,7 @@ glamor_init(ScreenPtr screen, unsigned int flags)
|
|||
glamor_init_tile_shader(screen);
|
||||
glamor_init_putimage_shaders(screen);
|
||||
glamor_init_finish_access_shaders(screen);
|
||||
glamor_init_gradient_shader(screen);
|
||||
glamor_pixmap_init(screen);
|
||||
|
||||
glamor_priv->flags = flags;
|
||||
|
|
@ -416,6 +417,7 @@ glamor_release_screen_priv(ScreenPtr screen)
|
|||
glamor_fini_tile_shader(screen);
|
||||
glamor_fini_putimage_shaders(screen);
|
||||
glamor_fini_finish_access_shaders(screen);
|
||||
glamor_fini_gradient_shader(screen);
|
||||
glamor_pixmap_fini(screen);
|
||||
free(glamor_priv);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue