gallium/targets/d3dadapter9: Fix device detection for render-nodes
authorAxel Davy <axel.davy@ens.fr>
Sat, 10 Jan 2015 17:49:16 +0000 (18:49 +0100)
committerAxel Davy <axel.davy@ens.fr>
Thu, 5 Feb 2015 23:07:19 +0000 (00:07 +0100)
commit8f50614910c40366d94964fe2c5da5772aff2f96
tree076e6684141d055f7b407fda5b7e2dd2b76cf115
parent2c54d154e86cd93caed527824166f468a6c24c70
gallium/targets/d3dadapter9: Fix device detection for render-nodes

When on a render node the unique ioctl doesn't work.

This patch drops the code to detect the device, which relied
on an ioctl, and replaces it by the mesa loader function.
The mesa loader function is more complete and won't fail for render-nodes.

Alternatively we could also have used the pipe cap to
determine the vendor and device id from the driver.

Reviewed-by: Tiziano Bacocco <tizbac2@gmail.com>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/targets/d3dadapter9/drm.c