[Mesa-dev] [PATCH v2 2/2] drisw: Use separate drisw_loader_funcs for shm

2018-11-23 Thread Michal Srb
Fixes: 63c427fa71a ("drisw: use putImageShm if available") Signed-off-by: Michal Srb --- src/gallium/state_trackers/dri/drisw.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/gallium/state_trackers/dri/drisw.c b/src/gallium/state_trackers/dri/drisw.c i

Re: [Mesa-dev] [PATCH 2/2] drisw: Use separate drisw_loader_funcs for shm

2018-11-23 Thread Michal Srb
On pátek 23. listopadu 2018 16:41:33 CET Emil Velikov wrote: > Hi Michal, > > On 2018/11/23, Michal Srb wrote: > > The original code was modifying the global drisw_lf variable, which is bad > > when there are multiple contexts in single process, each initialized with > >

[Mesa-dev] [PATCH 2/2] drisw: Use separate drisw_loader_funcs for shm

2018-11-23 Thread Michal Srb
tables, one for each. Lets make them const, since we won't change them and they can be shared. Signed-off-by: Michal Srb --- This fixes crash in VLC. It used two GL contexts (each in different thread), one was initialized by its Qt GUI, the other by its video output plugin. The first one se

[Mesa-dev] [PATCH 1/2] gallium: Constify drisw_loader_funcs struct

2018-11-23 Thread Michal Srb
The content is not expected to change. Signed-off-by: Michal Srb --- src/gallium/auxiliary/pipe-loader/pipe_loader.h| 2 +- src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c | 2 +- src/gallium/winsys/sw/dri/dri_sw_winsys.c | 4 ++-- src/gallium/winsys/sw/dri/dri_sw_winsys.h

Re: [Mesa-dev] [PATCH] i965: Reuse the same single-page bo for all zero sized allocations

2018-08-15 Thread Michal Srb
Hi, This is my first attempt to review patch for Mesa, so please take it with a grain of salt. On úterý 14. srpna 2018 20:21:40 CEST Chris Wilson wrote: > @@ -504,6 +506,24 @@ bo_alloc_internal(struct brw_bufmgr *bufmgr, > bool busy = false; > bool zeroed = false; > > + /* Reuse the s

[Mesa-dev] [PATCH] st/dri: don't set queryDmaBufFormats/queryDmaBufModifiers if the driver does not implement it

2018-03-15 Thread Michal Srb
This is equivalent to commit a65db0ad1c3, but for dri_kms_init_screen. Without this gbm_dri_is_format_supported always returns false. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104926 --- src/gallium/state_trackers/dri/dri2.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-)

[Mesa-dev] [PATCH v2] r600: Allow egd_tables.py to run with python3 too

2018-01-11 Thread Michal Srb
diff --git a/src/gallium/drivers/r600/egd_tables.py b/src/gallium/drivers/r600/egd_tables.py index d7b78c7fb1..7bda44ce83 100644 --- a/src/gallium/drivers/r600/egd_tables.py +++ b/src/gallium/drivers/r600/egd_tables.py @@ -1,4 +1,4 @@ - +#!/usr/bin/python3 CopyRight = ''' /* * Copyright 2015 A

Re: [Mesa-dev] [PATCH] r600: Allow egd_tables.py to run with python3 too

2018-01-10 Thread Michal Srb
On středa 10. ledna 2018 3:49:43 CET Dave Airlie wrote: > On 5 January 2018 at 01:14, Michal Srb wrote: > > From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= > > > > Makes the egd_tables.py compatible with both python 2 and 3. > > This appears to break the build he

[Mesa-dev] [PATCH] r600: Allow egd_tables.py to run with python3 too

2018-01-04 Thread Michal Srb
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Makes the egd_tables.py compatible with both python 2 and 3. --- src/gallium/drivers/r600/egd_tables.py | 52 +- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/src/gallium/drivers/r600/egd_tables.py

[Mesa-dev] [PATCH] st: Add cubeMapFace parameter to st_finalize_texture.

2017-03-28 Thread Michal Srb
st_finalize_texture always accesses image at face 0, but it may not be set if we are working with cubemap that had other face set. This fixes crash in piglit same-attachment-glFramebufferTexture2D-GL_DEPTH_STENCIL_ATTACHMENT. --- Hi, this is my attempt to fix crash in piglit test same-attachmen