projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0d330b
)
radeonsi/gfx10: fix VGT_PRIMITIVE_TYPE programming
author
Marek Olšák
<marek.olsak@amd.com>
Tue, 16 Jul 2019 17:23:17 +0000
(13:23 -0400)
committer
Marek Olšák
<marek.olsak@amd.com>
Sat, 20 Jul 2019 00:16:19 +0000
(20:16 -0400)
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/drivers/radeonsi/si_state_draw.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_state_draw.c
b/src/gallium/drivers/radeonsi/si_state_draw.c
index dca0840a693e50d859602cd9ff746c674f9da57f..f39b7c653e50c23bd128d42b55f48311088d852a 100644
(file)
--- a/
src/gallium/drivers/radeonsi/si_state_draw.c
+++ b/
src/gallium/drivers/radeonsi/si_state_draw.c
@@
-768,7
+768,9
@@
static void si_emit_draw_registers(struct si_context *sctx,
instance_count, primitive_restart);
if (vgt_prim != sctx->last_prim) {
- if (sctx->chip_class >= GFX7)
+ if (sctx->chip_class >= GFX10)
+ radeon_set_uconfig_reg(cs, R_030908_VGT_PRIMITIVE_TYPE, vgt_prim);
+ else if (sctx->chip_class >= GFX7)
radeon_set_uconfig_reg_idx(cs, sctx->screen,
R_030908_VGT_PRIMITIVE_TYPE, 1, vgt_prim);
else