Re: [Mesa-dev] [RFC PATCH] GBM: Add map/unmap functions

2016-05-23 Thread Rob Clark
On Mon, May 23, 2016 at 8:12 PM, Emil Velikov wrote: > On 23 May 2016 at 22:19, Rob Clark wrote: >> On Mon, May 23, 2016 at 5:16 PM, Mark Janes wrote: >>> I run a buildtest in our CI to help Intel engineers avoid breaking the >>> builds for other Mesa targets. >>> >>> With this commit, it produc

Re: [Mesa-dev] [RFC PATCH] GBM: Add map/unmap functions

2016-05-23 Thread Rob Herring
On Mon, May 23, 2016 at 7:12 PM, Emil Velikov wrote: > On 23 May 2016 at 22:19, Rob Clark wrote: >> On Mon, May 23, 2016 at 5:16 PM, Mark Janes wrote: >>> I run a buildtest in our CI to help Intel engineers avoid breaking the >>> builds for other Mesa targets. >>> >>> With this commit, it produc

Re: [Mesa-dev] [RFC PATCH] GBM: Add map/unmap functions

2016-05-23 Thread Emil Velikov
On 23 May 2016 at 22:19, Rob Clark wrote: > On Mon, May 23, 2016 at 5:16 PM, Mark Janes wrote: >> I run a buildtest in our CI to help Intel engineers avoid breaking the >> builds for other Mesa targets. >> >> With this commit, it produces: >> >> make[2]: Entering directory '/home/majanes/src/mesa

Re: [Mesa-dev] [RFC PATCH] GBM: Add map/unmap functions

2016-05-23 Thread Mark Janes
Rob Clark writes: > On Mon, May 23, 2016 at 5:16 PM, Mark Janes wrote: >> I run a buildtest in our CI to help Intel engineers avoid breaking the >> builds for other Mesa targets. >> >> With this commit, it produces: >> >> make[2]: Entering directory '/home/majanes/src/mesa/src/gbm' >> CCLD

Re: [Mesa-dev] [RFC PATCH] GBM: Add map/unmap functions

2016-05-23 Thread Rob Clark
On Mon, May 23, 2016 at 5:16 PM, Mark Janes wrote: > I run a buildtest in our CI to help Intel engineers avoid breaking the > builds for other Mesa targets. > > With this commit, it produces: > > make[2]: Entering directory '/home/majanes/src/mesa/src/gbm' > CCLD libgbm.la > backends/dri/.li

Re: [Mesa-dev] [RFC PATCH] GBM: Add map/unmap functions

2016-05-23 Thread Mark Janes
I run a buildtest in our CI to help Intel engineers avoid breaking the builds for other Mesa targets. With this commit, it produces: make[2]: Entering directory '/home/majanes/src/mesa/src/gbm' CCLD libgbm.la backends/dri/.libs/gbm_dri.o: In function `mtx_init': /home/majanes/src/mesa/src/g

Re: [Mesa-dev] [RFC PATCH] GBM: Add map/unmap functions

2016-04-11 Thread Rob Clark
On Wed, Mar 30, 2016 at 11:21 PM, Rob Herring wrote: > This adds GBM map and unmap functions. Unlike prior attempts, this > version provides a region and usage flags for the mapping. The operation > follows gallium transfer_map() function. This is complete enough to work > on Android with gralloc

Re: [Mesa-dev] [RFC PATCH] GBM: Add map/unmap functions

2016-04-11 Thread Thomas Hellstrom
On 04/11/2016 04:31 PM, Rob Clark wrote: > On Mon, Apr 11, 2016 at 10:09 AM, Emil Velikov > wrote: >> Hi Rob, >> >> On 31 March 2016 at 04:21, Rob Herring wrote: >>> This adds GBM map and unmap functions. Unlike prior attempts, this >>> version provides a region and usage flags for the mapping.

Re: [Mesa-dev] [RFC PATCH] GBM: Add map/unmap functions

2016-04-11 Thread Emil Velikov
On 11 April 2016 at 15:31, Rob Clark wrote: > On Mon, Apr 11, 2016 at 10:09 AM, Emil Velikov > wrote: >> Hi Rob, >> >> On 31 March 2016 at 04:21, Rob Herring wrote: >>> This adds GBM map and unmap functions. Unlike prior attempts, this >>> version provides a region and usage flags for the mappi

Re: [Mesa-dev] [RFC PATCH] GBM: Add map/unmap functions

2016-04-11 Thread Rob Clark
On Mon, Apr 11, 2016 at 10:09 AM, Emil Velikov wrote: > Hi Rob, > > On 31 March 2016 at 04:21, Rob Herring wrote: >> This adds GBM map and unmap functions. Unlike prior attempts, this >> version provides a region and usage flags for the mapping. The operation >> follows gallium transfer_map() fun

Re: [Mesa-dev] [RFC PATCH] GBM: Add map/unmap functions

2016-04-11 Thread Emil Velikov
Hi Rob, On 31 March 2016 at 04:21, Rob Herring wrote: > This adds GBM map and unmap functions. Unlike prior attempts, this > version provides a region and usage flags for the mapping. The operation > follows gallium transfer_map() function. This is complete enough to work > on Android with grallo

Re: [Mesa-dev] [RFC PATCH] GBM: Add map/unmap functions

2016-03-31 Thread Rob Herring
On Thu, Mar 31, 2016 at 6:13 AM, Daniel Stone wrote: > Hi, > > On 31 March 2016 at 04:21, Rob Herring wrote: >> diff --git a/include/GL/internal/dri_interface.h >> b/include/GL/internal/dri_interface.h >> index 6bbd3fa..b059112 100644 >> --- a/include/GL/internal/dri_interface.h >> +++ b/include

Re: [Mesa-dev] [RFC PATCH] GBM: Add map/unmap functions

2016-03-31 Thread Rob Clark
On Thu, Mar 31, 2016 at 7:13 AM, Daniel Stone wrote: >> +static void * >> +_gbm_dri_bo_map(struct gbm_bo *_bo, >> + uint32_t x, uint32_t y, >> + uint32_t width, uint32_t height, >> + uint32_t usage) >> +{ >> + struct gbm_dri_device *dri = gbm_dri_device(_bo

Re: [Mesa-dev] [RFC PATCH] GBM: Add map/unmap functions

2016-03-31 Thread Daniel Stone
Hi, On 31 March 2016 at 04:21, Rob Herring wrote: > diff --git a/include/GL/internal/dri_interface.h > b/include/GL/internal/dri_interface.h > index 6bbd3fa..b059112 100644 > --- a/include/GL/internal/dri_interface.h > +++ b/include/GL/internal/dri_interface.h > @@ -1101,6 +1101,9 @@ struct __DR

Re: [Mesa-dev] [RFC PATCH] GBM: Add map/unmap functions

2016-03-31 Thread Axel Davy
On 31/03/2016 05:21, Rob Herring wrote : int (*getCapabilities)(__DRIscreen *screen); + + /** +* Lock a part of a __DRIimage for specified usage +* +* flush_flag: +*0: no flush +*__BLIT_FLAG_FLUSH: flush after the blit operation +*__BLI

[Mesa-dev] [RFC PATCH] GBM: Add map/unmap functions

2016-03-30 Thread Rob Herring
This adds GBM map and unmap functions. Unlike prior attempts, this version provides a region and usage flags for the mapping. The operation follows gallium transfer_map() function. This is complete enough to work on Android with gralloc using the GBM API. TODO: - split up patches - define and prop