mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 18:00:10 +01: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
|
||||
device::ir_format() const {
|
||||
return (enum pipe_shader_ir) pipe->get_shader_param(
|
||||
pipe, PIPE_SHADER_COMPUTE, PIPE_SHADER_CAP_PREFERRED_IR);
|
||||
int supported_irs =
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue