On Thu, Jul 26, 2018 at 7:30 AM Emil Velikov
wrote:
> Hi David,
>
> Hi Emil,
Thanks for the comments.
> On 18 July 2018 at 01:12, David Riley wrote:
> > Allow platform_surfaceless to use swrast even if DRM is not available.
> > To be used to allow a fuzzer for virgl
On Thu, Jul 26, 2018 at 7:22 AM Emil Velikov
wrote:
> Hi David,
>
> On 18 July 2018 at 01:12, David Riley wrote:
>
> Commit message here should explain why this is needed. Is the current
> kms_swrast usage failing/crashing somewhere, etc.
>
The change wasn't neede
Ping for this patch set.
On Tue, Jul 17, 2018 at 5:12 PM David Riley wrote:
> Allow platform_surfaceless to use swrast even if DRM is not available.
> To be used to allow a fuzzer for virgl to be run on a jailed VM without
> hardware GL or DRM support.
>
> v2: Comment style f
Without this change, dlopen()/dlclose() of any driver results in memory
being leaked which becomes problematic if things are being reinitialized
repeatedly (eg from a fuzzer).
Even with this change, repeated dlopen()/dlclose() results in a single
LLVM mutex being allocated and never freed (used to
Signed-off-by: David Riley
---
src/egl/drivers/dri2/platform_surfaceless.c | 28 +
1 file changed, 23 insertions(+), 5 deletions(-)
diff --git a/src/egl/drivers/dri2/platform_surfaceless.c
b/src/egl/drivers/dri2/platform_surfaceless.c
index a0348a5e95..f5fe7119c6 100644
Allow platform_surfaceless to use swrast even if DRM is not available.
To be used to allow a fuzzer for virgl to be run on a jailed VM without
hardware GL or DRM support.
Signed-off-by: David Riley
---
src/egl/drivers/dri2/platform_surfaceless.c | 19 +++
1 file changed, 19
Allow platform_surfaceless to use swrast even if DRM is not available.
To be used to allow a fuzzer for virgl to be run on a jailed VM without
hardware GL or DRM support.
v2: Comment style fixes and remove redundant assignment.
David Riley (2):
egl/surfaceless: Define DRI_SWRastLoader
Signed-off-by: David Riley
---
src/egl/drivers/dri2/platform_surfaceless.c | 28 +++-
1 file changed, 23 insertions(+), 5 deletions(-)
diff --git a/src/egl/drivers/dri2/platform_surfaceless.c
b/src/egl/drivers/dri2/platform_surfaceless.c
index a0348a5..f5fe711 100644
Allow platform_surfaceless to use swrast even if DRM is not available.
To be used to allow a fuzzer for virgl to be run on a jailed VM without
hardware GL or DRM support.
Signed-off-by: David Riley
---
src/egl/drivers/dri2/platform_surfaceless.c | 20
1 file changed, 20