mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-29 21:46:40 +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
|
|
@ -1275,6 +1275,28 @@ done:
|
|||
return ret;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
glamor_init_gradient_shader(ScreenPtr screen)
|
||||
{
|
||||
glamor_screen_private *glamor_priv;
|
||||
|
||||
glamor_priv = glamor_get_screen_private(screen);
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
glamor_fini_gradient_shader(ScreenPtr screen)
|
||||
{
|
||||
glamor_screen_private *glamor_priv;
|
||||
glamor_gl_dispatch *dispatch;
|
||||
|
||||
glamor_priv = glamor_get_screen_private(screen);
|
||||
dispatch = glamor_get_dispatch(glamor_priv);
|
||||
|
||||
glamor_put_dispatch(glamor_priv);
|
||||
}
|
||||
|
||||
static PicturePtr
|
||||
glamor_convert_gradient_picture(ScreenPtr screen,
|
||||
PicturePtr source,
|
||||
|
|
|
|||
Loading…
Reference in a new issue