Commit 7b165917 authored by Pierre Moreau's avatar Pierre Moreau
Browse files

clover: List supported ILs versions



v2:
* Change the existing method to return a `std::vector<cl_name_version`;
* Add a string function that uses the previous method but returns a
  `std::string`.
v3:
* Remove `supported_il_versions_as_string()` (Francisco Jerez)
Reviewed-by: Francisco Jerez's avatarFrancisco Jerez <currojerez@riseup.net>
Signed-off-by: Pierre Moreau's avatarPierre Moreau <dev@pmoreau.org>
Part-of: <mesa/mesa!2078>
parent c0d4d21f
......@@ -25,6 +25,7 @@
#include "core/platform.hpp"
#include "pipe/p_screen.h"
#include "pipe/p_state.h"
#include "spirv/invocation.hpp"
#include "util/bitscan.h"
#include "util/u_debug.h"
#include "spirv/invocation.hpp"
......@@ -385,6 +386,11 @@ device::supported_extensions_as_string() const {
return extensions_string;
}
std::vector<cl_name_version>
device::supported_il_versions() const {
return clover::spirv::supported_versions();
}
const void *
device::get_compiler_options(enum pipe_shader_ir ir) const {
return pipe->get_compiler_options(pipe, ir, PIPE_SHADER_COMPUTE);
......
......@@ -96,6 +96,7 @@ namespace clover {
cl_version device_clc_version() const;
std::vector<cl_name_version> opencl_c_all_versions() const;
std::vector<cl_name_version> supported_extensions() const;
std::vector<cl_name_version> supported_il_versions() const;
std::vector<cl_name_version> opencl_c_features() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment