[Mesa-dev] [PATCH v10 05/20] clover/device: Replace usage of "1 << PIPE_SHADER_IR_*" with supports_ir
Pierre Moreau
pierre.morrow at free.fr
Tue Jan 8 21:10:54 UTC 2019
Reviewed-by: Aaron Watry <awatry at gmail.com>
Reviewed-by: Karol Herbst <kherbst at redhat.com>
Signed-off-by: Pierre Moreau <pierre.morrow at free.fr>
---
src/gallium/state_trackers/clover/core/device.cpp | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/gallium/state_trackers/clover/core/device.cpp b/src/gallium/state_trackers/clover/core/device.cpp
index 62d5221bf83..bd67bab5bc8 100644
--- a/src/gallium/state_trackers/clover/core/device.cpp
+++ b/src/gallium/state_trackers/clover/core/device.cpp
@@ -244,11 +244,7 @@ device::vendor_name() const {
enum pipe_shader_ir
device::ir_format() const {
- int supported_irs =
- pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE,
- PIPE_SHADER_CAP_SUPPORTED_IRS);
-
- if (supported_irs & (1 << PIPE_SHADER_IR_NATIVE)) {
+ if (supports_ir(PIPE_SHADER_IR_NATIVE)) {
return PIPE_SHADER_IR_NATIVE;
}
--
2.20.1
More information about the mesa-dev
mailing list