mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
clover: use PIPE_SHADER_CAP_SUPPORTED_IRS to discover IR
PIPE_SHADER_CAP_PREFERRED_IR was conflicting with PIPE_SHADER_IR_NIR for compute shaders, so we let clover pick the one it wants to use. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
3af4f34e61
commit
51f484bb44
1 changed files with 9 additions and 2 deletions
|
|
@ -243,8 +243,15 @@ device::vendor_name() const {
|
||||||
|
|
||||||
enum pipe_shader_ir
|
enum pipe_shader_ir
|
||||||
device::ir_format() const {
|
device::ir_format() const {
|
||||||
return (enum pipe_shader_ir) pipe->get_shader_param(
|
int supported_irs =
|
||||||
pipe, PIPE_SHADER_COMPUTE, PIPE_SHADER_CAP_PREFERRED_IR);
|
pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE,
|
||||||
|
PIPE_SHADER_CAP_SUPPORTED_IRS);
|
||||||
|
|
||||||
|
if (supported_irs & (1 << PIPE_SHADER_IR_NATIVE)) {
|
||||||
|
return PIPE_SHADER_IR_NATIVE;
|
||||||
|
}
|
||||||
|
|
||||||
|
return PIPE_SHADER_IR_TGSI;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string
|
std::string
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue