clover: Only use devices supporting IR_NATIVE
authorPierre Moreau <pierre.morrow@free.fr>
Wed, 30 Jan 2019 17:38:18 +0000 (18:38 +0100)
committerKarol Herbst <kherbst@redhat.com>
Tue, 26 Feb 2019 20:02:07 +0000 (21:02 +0100)
commit5285fff5f9681992a1660d34d2369c03701776b5
treea0335e80fb2381577e11b2abddacd759c772d843
parent8f9b4a2be673c6b398caa62149828013a81039e4
clover: Only use devices supporting IR_NATIVE

Currently clover will advertise any device that advertises
PIPE_CAP_COMPUTE, even if they do not support PIPE_SHADER_IR_NATIVE,
which is the IR used internally by clover.
This avoids clover advertising devices as available even though they
actually are not supported.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/core/device.cpp