projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42bc25a
)
r600: only reported tgsi ir compute support on evergreen+
author
Dave Airlie
<airlied@redhat.com>
Mon, 18 Dec 2017 21:38:09 +0000
(21:38 +0000)
committer
Dave Airlie
<airlied@redhat.com>
Mon, 18 Dec 2017 21:41:46 +0000
(21:41 +0000)
This fixes a crash on r600/r700.
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_pipe.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_pipe.c
b/src/gallium/drivers/r600/r600_pipe.c
index fa25536a2ffa6d902bf1d12e7b82d555862dc15c..29cffe9c7e2ab89484436e101fb4df70e38cc752 100644
(file)
--- 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 ||