projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b03f2d
)
radeonsi: fix occlusion queries on Fiji
author
Marek Olšák
<marek.olsak@amd.com>
Tue, 27 Oct 2015 22:10:51 +0000
(23:10 +0100)
committer
Marek Olšák
<marek.olsak@amd.com>
Thu, 3 Dec 2015 22:46:37 +0000
(23:46 +0100)
Tested.
src/gallium/drivers/radeon/r600_pipe_common.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeon/r600_pipe_common.c
b/src/gallium/drivers/radeon/r600_pipe_common.c
index 27e1269f40021383a5176fd83e2db67f63074405..1ed5eb794d3659c267f903b1e0e32b7799a8789d 100644
(file)
--- a/
src/gallium/drivers/radeon/r600_pipe_common.c
+++ b/
src/gallium/drivers/radeon/r600_pipe_common.c
@@
-239,8
+239,8
@@
bool r600_common_context_init(struct r600_common_context *rctx,
rctx->family = rscreen->family;
rctx->chip_class = rscreen->chip_class;
- if (rscreen->
family == CHIP_HAWAII
)
- rctx->max_db =
16
;
+ if (rscreen->
chip_class >= CIK
)
+ rctx->max_db =
MAX2(8, rscreen->info.r600_num_backends)
;
else if (rscreen->chip_class >= EVERGREEN)
rctx->max_db = 8;
else