summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-01-10 14:50:34 +1000
committerBas Nieuwenhuizen <[email protected]>2017-01-11 09:08:51 +0100
commite9d3cbca316c7993e1145f3254bcf17f0e643589 (patch)
treeeb31c6d435e7c2ec2e676f94e23c9c3f55ba7d11 /src
parentf97f93865012c5b271a5d3f81d4ea6f58d07c047 (diff)
radv: fix multi-viewport emission
This set context req seq was in the wrong place. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/amd/vulkan/si_cmd_buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/vulkan/si_cmd_buffer.c b/src/amd/vulkan/si_cmd_buffer.c
index a483ad9fd39..e59d52e82af 100644
--- a/src/amd/vulkan/si_cmd_buffer.c
+++ b/src/amd/vulkan/si_cmd_buffer.c
@@ -480,11 +480,11 @@ si_write_viewport(struct radeon_winsys_cs *cs, int first_vp,
radeon_emit(cs, fui(translate[2]));
}
+ radeon_set_context_reg_seq(cs, R_0282D0_PA_SC_VPORT_ZMIN_0 +
+ first_vp * 4 * 2, count * 2);
for (i = 0; i < count; i++) {
float zmin = MIN2(viewports[i].minDepth, viewports[i].maxDepth);
float zmax = MAX2(viewports[i].minDepth, viewports[i].maxDepth);
- radeon_set_context_reg_seq(cs, R_0282D0_PA_SC_VPORT_ZMIN_0 +
- first_vp * 4 * 2, count * 2);
radeon_emit(cs, fui(zmin));
radeon_emit(cs, fui(zmax));
}