radeonsi: Set NONE format for unused vertex shader position export slots.
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 10 May 2012 11:54:39 +0000 (13:54 +0200)
committerMichel Dänzer <michel@daenzer.net>
Thu, 10 May 2012 11:54:39 +0000 (13:54 +0200)
src/gallium/drivers/radeonsi/evergreen_state.c

index 3ab8d9d255cc3d1053d1d266f146e797a5ff3e8b..c7e4a13f583d61282d67973e8bb006e4583557ae 100644 (file)
@@ -2088,9 +2088,9 @@ void si_pipe_shader_vs(struct pipe_context *ctx, struct si_pipe_shader *shader)
        r600_pipe_state_add_reg(rstate,
                                R_02870C_SPI_SHADER_POS_FORMAT,
                                S_02870C_POS0_EXPORT_FORMAT(V_02870C_SPI_SHADER_4COMP) |
-                               S_02870C_POS1_EXPORT_FORMAT(V_02870C_SPI_SHADER_4COMP) |
-                               S_02870C_POS2_EXPORT_FORMAT(V_02870C_SPI_SHADER_4COMP) |
-                               S_02870C_POS3_EXPORT_FORMAT(V_02870C_SPI_SHADER_4COMP),
+                               S_02870C_POS1_EXPORT_FORMAT(V_02870C_SPI_SHADER_NONE) |
+                               S_02870C_POS2_EXPORT_FORMAT(V_02870C_SPI_SHADER_NONE) |
+                               S_02870C_POS3_EXPORT_FORMAT(V_02870C_SPI_SHADER_NONE),
                                NULL, 0);
 
        va = r600_resource_va(ctx->screen, (void *)shader->bo);