Commit c65dc686 authored by Zhigang Gong's avatar Zhigang Gong Committed by Eric Anholt

Export glamor_validate_gc to DDX.

This is also a function which may direct access pixmaps which
may be a glamor only pixmap and DDX doesn't know how to access
it. We have to export this API to DDX driver and let the DDX
driver use it to do the validation.
Signed-off-by: default avatarZhigang Gong <zhigang.gong@linux.intel.com>
parent f2809745
......@@ -183,6 +183,8 @@ extern _X_EXPORT void glamor_egl_free_screen(int scrnIndex, int flags);
#endif
extern _X_EXPORT int glamor_create_gc(GCPtr gc);
extern _X_EXPORT void glamor_validate_gc(GCPtr gc, unsigned long changes, DrawablePtr drawable);
/* Glamor rendering/drawing functions with XXX_nf.
* nf means no fallback within glamor internal if possible. If glamor
* fail to accelerate the operation, glamor will return a false, and the
......
......@@ -366,7 +366,7 @@ GCOps glamor_gc_ops = {
* uxa_validate_gc() sets the ops to glamor's implementations, which may be
* accelerated or may sync the card and fall back to fb.
*/
static void
void
glamor_validate_gc(GCPtr gc, unsigned long changes, DrawablePtr drawable)
{
/* fbValidateGC will do direct access to pixmaps if the tiling has changed.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment