WIP: add debug option to disable scissor optimization
WIP: u_primconvert for GL_QUADS...
squash! WIP: freedreno: prepare for a3xx
squash: WIP: freedreno: add a3xx support
xa: add xa_surface_from_handle()

For freedreno DDX, we have to create the scanout GEM bo in a special way
(until we have our own KMS/DRM kernel driver.. and even then for
phones/tablets you probably need to use the android drivers if you don't
want to port the lcd panel driver support).  The easiest way to handle
this is let the DDX create the scanout bo, and then create the xa
surface from that.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
xa: add handle type parameter to get handle

Allow to retrieve non shared handle.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
xa: export a common context flush function

First step before moving flushing inside the ddx.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
xa: fix dma copy function

pipe_transfer_map already offset the surface properly so using the offset
again with util_copy_rect might lead to read/write outside the surface.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
xa: let ddx handle flush

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
xa: move surface to ref/unref api

This make ddx life easier.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
freedreno: add xa-freedreno target

Signed-off-by: Rob Clark <robclark@freedesktop.org>