mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-03 03:24:39 +00:00
glamor: Adapt glamor_program API to handle render acceleration
This extends the existing API to support options needed for render accleration, including an additional fragment, 'combine', (which provides a place to perform the source IN mask operation before the final OP dest state) and an additional 'defines' parameter which provides a way to add target-dependent values without using a uniform. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
ff3195aadd
commit
1b745e0c1f
8 changed files with 347 additions and 30 deletions
|
|
@ -417,7 +417,7 @@ glamor_image_text(DrawablePtr drawable, GCPtr gc,
|
|||
fill_facet = &glamor_facet_image_fill;
|
||||
}
|
||||
|
||||
if (!glamor_build_program(screen, prog, prim_facet, fill_facet))
|
||||
if (!glamor_build_program(screen, prog, prim_facet, fill_facet, NULL, NULL))
|
||||
goto bail;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue