drisw: Enable flush control for llvmpipe and softpipe
authorAdam Jackson <ajax@redhat.com>
Wed, 4 Feb 2015 18:04:26 +0000 (13:04 -0500)
committerAdam Jackson <ajax@redhat.com>
Mon, 6 Nov 2017 21:09:03 +0000 (16:09 -0500)
Hilariously this is a fairly big win.  Neil's multi-context-test
improves from ~24 to ~36 fps with llvmpipe on a Core i5-3317U.  softpipe
also improves, from about 2.25 to 3.09 fps (when it's that slow, you're
allowed to be that precise).

I'd have added it to swrast classic, but the testcase wants GL 3.0 and
shaders, and that's not a thing classic has, so I figured making it work
on softpipe was crime enough.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
src/gallium/state_trackers/dri/drisw.c

index 9466cfd..eb57523 100644 (file)
@@ -381,6 +381,7 @@ static const __DRIextension *drisw_screen_extensions[] = {
    &dri2FenceExtension.base,
    &dri2NoErrorExtension.base,
    &driSWImageExtension.base,
+   &dri2FlushControlExtension.base,
    NULL
 };