r600: only reported tgsi ir compute support on evergreen+
This fixes a crash on r600/r700. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -602,7 +602,9 @@ static int r600_get_shader_param(struct pipe_screen* pscreen,
|
||||
return PIPE_SHADER_IR_TGSI;
|
||||
}
|
||||
case PIPE_SHADER_CAP_SUPPORTED_IRS:
|
||||
return (1 << PIPE_SHADER_IR_TGSI);
|
||||
if (rscreen->b.family >= CHIP_CEDAR)
|
||||
return (1 << PIPE_SHADER_IR_TGSI);
|
||||
return 0;
|
||||
case PIPE_SHADER_CAP_TGSI_FMA_SUPPORTED:
|
||||
if (rscreen->b.family == CHIP_ARUBA ||
|
||||
rscreen->b.family == CHIP_CAYMAN ||
|
||||
|
||||
Reference in New Issue
Block a user