mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
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:
parent
42bc25a79c
commit
6ab346c4d9
1 changed files with 3 additions and 1 deletions
|
|
@ -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 ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue