Mesa (master): r600: only reported tgsi ir compute support on evergreen+
Dave Airlie
airlied at kemper.freedesktop.org
Mon Dec 18 21:41:55 UTC 2017
Module: Mesa
Branch: master
Commit: 6ab346c4d9ce3d8f0c4d5ba347752fd1ad9337d9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6ab346c4d9ce3d8f0c4d5ba347752fd1ad9337d9
Author: Dave Airlie <airlied at redhat.com>
Date: Mon Dec 18 21:38:09 2017 +0000
r600: only reported tgsi ir compute support on evergreen+
This fixes a crash on r600/r700.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/gallium/drivers/r600/r600_pipe.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
index fa25536a2f..29cffe9c7e 100644
--- a/src/gallium/drivers/r600/r600_pipe.c
+++ b/src/gallium/drivers/r600/r600_pipe.c
@@ -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 ||
More information about the mesa-commit
mailing list