d3dadapter9: Support software renderer on any DRI device
authorPatrick Rudolph <siro@das-labor.org>
Thu, 28 Feb 2019 17:13:39 +0000 (18:13 +0100)
committerAxel Davy <davyaxel0@gmail.com>
Sat, 9 Mar 2019 12:57:49 +0000 (13:57 +0100)
commit0d0847659385e298badd6ef6ca4d0a9e537ae288
tree2949286e9ae902c34d9a62c185ecb92618002936
parentf7b9c09c7cd41dc91c5392e467b71216234e342e
d3dadapter9: Support software renderer on any DRI device

If D3D_ALWAYS_SOFTWARE is set for debugging purposes,
run on any DRI enabled platform.
Instead of probing for a compatible gallium driver (which might
fail if there's none) always use the KMS DRI software renderer.

Allows to run nine on i915 when D3D_ALWAYS_SOFTWARE=1.

Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Axel Davy <davyaxel0@gmail.com>
src/gallium/targets/d3dadapter9/drm.c