softpipe: add support for compute shaders. (v2)
authorDave Airlie <airlied@redhat.com>
Tue, 26 Apr 2016 04:32:52 +0000 (14:32 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 26 Apr 2016 23:01:03 +0000 (09:01 +1000)
commite749c30cebe071da450e28cb47b1b7deb8284a39
treef979efb8e10bd77e8f83166efcd3777af4594a1c
parentf78bcb7638be3c2612fd1ab0371361a8b53104c7
softpipe: add support for compute shaders. (v2)

This enables ARB_compute_shader on softpipe. I've only
tested this with piglit so far, and I hopefully plan
on integrating it with my vulkan work. I'll get to
testing it with deqp more later.

The basic premise is to create up to 1024 restartable
TGSI machines, and execute workgroups of those machines.

v1.1: free machines.
v2: deqp fixes - add samplers support, finish
atomic operations, fix load/store writemasks.

Acked-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/softpipe/Makefile.sources
src/gallium/drivers/softpipe/sp_compute.c [new file with mode: 0644]
src/gallium/drivers/softpipe/sp_context.c
src/gallium/drivers/softpipe/sp_context.h
src/gallium/drivers/softpipe/sp_screen.c
src/gallium/drivers/softpipe/sp_state.h
src/gallium/drivers/softpipe/sp_state_derived.c
src/gallium/drivers/softpipe/sp_state_shader.c