Acked-by: Pierre Moreau <pierre.morrow@free.fr>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
} else {
return PIPE_SHADER_IR_TGSI;
}
- case PIPE_SHADER_CAP_SUPPORTED_IRS:
+ case PIPE_SHADER_CAP_SUPPORTED_IRS: {
+ int ir = 0;
+ if (shader == PIPE_SHADER_COMPUTE)
+ ir = 1 << PIPE_SHADER_IR_NATIVE;
if (rscreen->b.family >= CHIP_CEDAR)
- return (1 << PIPE_SHADER_IR_TGSI);
- return 0;
+ ir |= 1 << PIPE_SHADER_IR_TGSI;
+ return ir;
+ }
case PIPE_SHADER_CAP_TGSI_FMA_SUPPORTED:
if (rscreen->b.family == CHIP_ARUBA ||
rscreen->b.family == CHIP_CAYMAN ||