mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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 <currojerez@riseup.net> Signed-off-by: Pierre Moreau <dev@pmoreau.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2078>
This commit is contained in:
parent
c0d4d21ff5
commit
7b1659173a
2 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue