r600g: fix vs export count
authorVadim Girlin <vadimgirlin@gmail.com>
Thu, 28 Jul 2011 20:33:31 +0000 (00:33 +0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Jul 2011 22:58:40 +0000 (18:58 -0400)
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=39572

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_state.c

index 4605c833dea7c7afe36bdeb169085d96e85b2128..152c5cf13a08a917e6b18d5edfc960080e8ff7ed 100644 (file)
@@ -2319,7 +2319,7 @@ void evergreen_pipe_shader_vs(struct pipe_context *ctx, struct r600_pipe_shader
 
        r600_pipe_state_add_reg(rstate,
                        R_0286C4_SPI_VS_OUT_CONFIG,
-                       S_0286C4_VS_EXPORT_COUNT(rshader->noutput - 2),
+                       S_0286C4_VS_EXPORT_COUNT(rshader->noutput - 1),
                        0xFFFFFFFF, NULL);
        r600_pipe_state_add_reg(rstate,
                        R_028860_SQ_PGM_RESOURCES_VS,
index 01406f2bad6a6d909f25799e8443260a709d5765..294c400caa17f754a7da74aea15ef560e919bdc0 100644 (file)
@@ -2086,7 +2086,7 @@ void r600_pipe_shader_vs(struct pipe_context *ctx, struct r600_pipe_shader *shad
 
        r600_pipe_state_add_reg(rstate,
                        R_0286C4_SPI_VS_OUT_CONFIG,
-                       S_0286C4_VS_EXPORT_COUNT(rshader->noutput - 2),
+                       S_0286C4_VS_EXPORT_COUNT(rshader->noutput - 1),
                        0xFFFFFFFF, NULL);
        r600_pipe_state_add_reg(rstate,
                        R_028868_SQ_PGM_RESOURCES_VS,