Re: [Mesa-dev] [PATCH] i915: Fix black buffers when importing prime fds

2014-09-10 Thread Andreas Pokorny
Pokorny < andreas.poko...@canonical.com> wrote: > Width and Height of the imported image was never initialized from the > imported bo. > > Signed-off-by: Andreas Pokorny > --- > src/mesa/drivers/dri/i915/intel_screen.c | 2 ++ > 1 file changed, 2 insertions(+) > >

Re: [Mesa-dev] [PATCH] i915: Fix black buffers when importing prime fds

2014-09-03 Thread Andreas Pokorny
Hi, I have to apologize again for the wrong tag. This fix is also needed on 10.3. regards Andreas On Wed, Aug 27, 2014 at 9:36 AM, Andreas Pokorny < andreas.poko...@canonical.com> wrote: > Width and Height of the imported image was never initialized from the > imported bo. >

[Mesa-dev] [PATCH 1/1] egl/drm: expose KHR_image_pixmap extension

2014-09-03 Thread Andreas Pokorny
This changes enables EGL_KHR_image_pixmap in the egl drm platform, which is implemented there but has not been advertised yet. Signed-off-by: Andreas Pokorny --- src/egl/drivers/dri2/platform_drm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/egl/drivers/dri2/platform_drm.c b/src

Re: [Mesa-dev] [PATCH] kms-swrast: Support Prime fd handling

2014-08-28 Thread Andreas Pokorny
Hi, On Thu, Aug 28, 2014 at 6:09 PM, Giovanni Campagna < scampa.giova...@gmail.com> wrote: > On Thu, Aug 28, 2014 at 4:01 PM, Emil Velikov > wrote: > > On 22/08/14 17:41, Andreas Pokorny wrote: > >> Allows using prime fds as display target and from display

Re: [Mesa-dev] [PATCH] kms-swrast: Support Prime fd handling

2014-08-28 Thread Andreas Pokorny
Hi, Thanks for looking through that again. On Thu, Aug 28, 2014 at 4:01 PM, Emil Velikov wrote: > On 22/08/14 17:41, Andreas Pokorny wrote: > > Allows using prime fds as display target and from display target. > > Test for PRIME capability after initializing kms_swrast screen. &

[Mesa-dev] [PATCH] i915: Fix missing image size in imported dma_bufs

2014-08-27 Thread Andreas Pokorny
Hi, This one liner should apply on top of master and the two release branches. It fixes 'black windows' when importing prime fds on gpus using the i915 driver paths. PS: Sorry for sending again I missed the 10.3 tag regards Andreas Andreas Pokorny (1): i915: Fix black bu

[Mesa-dev] [PATCH] i915: Fix black buffers when importing prime fds

2014-08-27 Thread Andreas Pokorny
Width and Height of the imported image was never initialized from the imported bo. Signed-off-by: Andreas Pokorny --- src/mesa/drivers/dri/i915/intel_screen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i915/intel_screen.c b/src/mesa/drivers/dri/i915

[Mesa-dev] [PATCH] i915: Fix missing image size in imported dma_bufs

2014-08-27 Thread Andreas Pokorny
Hi, This one liner should apply on top of master and the two release branches. It fixes 'black windows' when importing prime fds on gpus using the i915 driver paths. regards Andreas Andreas Pokorny (1): i915: Fix black buffers when importing prime fds src/mesa/driver

[Mesa-dev] [PATCH] kms-swrast: Support Prime fd handling v3

2014-08-22 Thread Andreas Pokorny
Hi, This should be the final version. Not sure why I even messed with guessing the stride value. regards Andreas Pokorny Andreas Pokorny (1): kms-swrast: Support Prime fd handling src/gallium/state_trackers/dri/dri2.c | 8 +++ src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c

[Mesa-dev] [PATCH] kms-swrast: Support Prime fd handling

2014-08-22 Thread Andreas Pokorny
Allows using prime fds as display target and from display target. Test for PRIME capability after initializing kms_swrast screen. Signed-off-by: Andreas Pokorny --- src/gallium/state_trackers/dri/dri2.c | 8 +++ src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c | 80

[Mesa-dev] [PATCH] kma-swrast: PRIME support v2

2014-08-22 Thread Andreas Pokorny
Hi, This adds support for dma_bufs throught fds to kms_swrast. Andreas Pokorny (1): kms-swrast: Support Prime fd handling src/gallium/state_trackers/dri/dri2.c | 8 +++ src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c | 80 --- 2 files changed, 78 insertions

[Mesa-dev] [PATCH] kms-swrast: Support Prime fd handling

2014-08-22 Thread Andreas Pokorny
Allows using prime fds as display target and from display target. Test for PRIME capability after initializing kms_swrast screen. Signed-off-by: Andreas Pokorny --- src/gallium/state_trackers/dri/dri2.c | 8 +++ src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c | 80

Re: [Mesa-dev] [PATCH 0/2] kms-swrast: PRIME and missing defines

2014-08-21 Thread Andreas Pokorny
Hi Thank you for the review! I will send an updated version asap. On Wed, Aug 20, 2014 at 4:50 PM, Emil Velikov wrote: > Do you have any rough numbers about the benefit this brings us ? I doubt that there is a big timing impact between sharing named drm handles and prime fds, but yeah right now

[Mesa-dev] [PATCH 2/2] kms-swrast: defines missing to build kms-swrast

2014-08-15 Thread Andreas Pokorny
--- src/gallium/state_trackers/dri/Makefile.am | 5 + 1 file changed, 5 insertions(+) diff --git a/src/gallium/state_trackers/dri/Makefile.am b/src/gallium/state_trackers/dri/Makefile.am index bda75c3..bcbd081 100644 --- a/src/gallium/state_trackers/dri/Makefile.am +++ b/src/gallium/state_tr

[Mesa-dev] [PATCH 0/2] kms-swrast: PRIME and missing defines

2014-08-15 Thread Andreas Pokorny
. regards Andreas Andreas Pokorny (2): kms-swrast: Support Prime fd handling kms-swrast: defines missing to build kms-swrast src/gallium/state_trackers/dri/Makefile.am| 5 ++ src/gallium/state_trackers/dri/dri2.c | 8 ++ src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c

[Mesa-dev] [PATCH 1/2] kms-swrast: Support Prime fd handling

2014-08-15 Thread Andreas Pokorny
Allows using prime fds as display target and from display target. Test for PRIME capability after initializing kms_swrast screen. Signed-off-by: Andreas Pokorny --- src/gallium/state_trackers/dri/dri2.c | 8 ++ src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c | 91

Re: [Mesa-dev] [PATCH v3 1/3] Add support for swrast to the DRM EGL platform

2014-07-02 Thread Andreas Pokorny
2014-07-02 18:48 GMT+02:00 Emil Velikov : > On 02/07/14 13:11, Andreas Pokorny wrote: > > Hi, > > Still trying the patch. Meanwhile I found two more things here: > > > > [...] > > > > The driver_name is later freed with free, so to avoid abort strdup should

Re: [Mesa-dev] [PATCH v3 1/3] Add support for swrast to the DRM EGL platform

2014-07-02 Thread Andreas Pokorny
Hi, Still trying the patch. Meanwhile I found two more things here: 2014-06-15 13:49 GMT+02:00 Giovanni Campagna : > From: Giovanni Campagna > [..] > static int > +dri_screen_create_swrast(struct gbm_dri_device *dri) > +{ > + int ret = 0; > + > + dri->base.driver_name = "swrast"; > + > +

Re: [Mesa-dev] [PATCH v3 2/3] Add a dumb drm/kms winsys for software rendering

2014-07-02 Thread Andreas Pokorny
Hi, Nice patches! I found one minor issue below. I currently try to integrate and use that locally within kvm, currently on top of 10.2. 2014-06-15 13:49 GMT+02:00 Giovanni Campagna : > From: Giovanni Campagna > > Add a new winsys and target that can be used with a dri2 state tracker and > [..]

[Mesa-dev] [PATCH] vega: fix for object handle leak

2012-12-15 Thread Andreas Pokorny
stays constant. The patch is against MesaLib-9.0.1 since I could not clone from annongit.freedesktop.org. Andreas Pokorny (1): vega: fix for object handle leak src/gallium/state_trackers/vega/mask.c |1 + src/gallium/state_trackers/vega/paint.c |4 +++- src/gallium/state_trackers/vega

[Mesa-dev] Debugging crashes in llvm

2011-05-10 Thread Andreas Pokorny
nt count=150, unsigned int numInstances=1) Line 645 + 0x28 bytesC libEGL.dll!vbo_exec_DrawArrays(unsigned int mode=4, int start=0, int count=150) Line 675 + 0x11 bytes C [...] What Information can I gather to find the cause for the crash? R

[Mesa-dev] Name mangling in win32 build of EGL and GLESv2

2011-05-04 Thread Andreas Pokorny
Hi, Looking at the Symbol table of a recent (66b66295d0bc856c69fd22575580c7ecee16 ) libEGL.dll. I get the following mangled names: eglBindAPI _eglBindContext _eglBindTexImage eglBindTexImage _eglBindWaylandDisplayWL@8 _eglCheckResource eglChooseConfig That is stdcall and cdecl calling conven

Re: [Mesa-dev] Building Mesa 7.10 on Windows 7 / Visual Studio 2010

2011-02-15 Thread Andreas Pokorny
Hi, 2011/2/15 Zack Rusin : > [...] > replace everything we have right now. the fact that piglit and our demos > already use it make it even easier. the build system to rule them all. > > unfortunately Jose tried it and the issue was that cmake doesn't support > convinenice libraries which mesa use