projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28f44ee
)
radeonsi/gfx10: don't initialize VGT_INSTANCE_STEP_RATE_0
author
Marek Olšák
<marek.olsak@amd.com>
Wed, 21 Aug 2019 00:58:18 +0000
(20:58 -0400)
committer
Marek Olšák
<marek.olsak@amd.com>
Tue, 27 Aug 2019 20:16:08 +0000
(16:16 -0400)
Only gfx9 and older use it to get InstanceID in VGPR1.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
src/gallium/drivers/radeonsi/si_state.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_state.c
b/src/gallium/drivers/radeonsi/si_state.c
index 566954b1887d5b4700f2002f69c09faf0f3c3668..8c47002c99f1bcb34b395cce14c68196265fd03b 100644
(file)
--- a/
src/gallium/drivers/radeonsi/si_state.c
+++ b/
src/gallium/drivers/radeonsi/si_state.c
@@
-5429,7
+5429,8
@@
static void si_init_config(struct si_context *sctx)
si_pm4_set_reg(pm4, R_028B98_VGT_STRMOUT_BUFFER_CONFIG, 0x0);
}
- si_pm4_set_reg(pm4, R_028AA0_VGT_INSTANCE_STEP_RATE_0, 1);
+ if (sscreen->info.chip_class <= GFX9)
+ si_pm4_set_reg(pm4, R_028AA0_VGT_INSTANCE_STEP_RATE_0, 1);
if (!has_clear_state)
si_pm4_set_reg(pm4, R_028AB8_VGT_VTX_CNT_EN, 0x0);
if (sctx->chip_class < GFX7)