Mesa (master): r600g: evergreen add stencil export bit
Dave Airlie
airlied at kemper.freedesktop.org
Wed Oct 13 07:46:12 UTC 2010
Module: Mesa
Branch: master
Commit: 92e729bba5aab9958f5ba1339c27f6bfe743ef2e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=92e729bba5aab9958f5ba1339c27f6bfe743ef2e
Author: Dave Airlie <airlied at redhat.com>
Date: Wed Oct 13 17:40:32 2010 +1000
r600g: evergreen add stencil export bit
---
src/gallium/drivers/r600/evergreen_state.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c
index 49a888a..379d66f 100644
--- a/src/gallium/drivers/r600/evergreen_state.c
+++ b/src/gallium/drivers/r600/evergreen_state.c
@@ -1558,6 +1558,11 @@ void evergreen_pipe_shader_ps(struct pipe_context *ctx, struct r600_pipe_shader
R_02880C_DB_SHADER_CONTROL,
S_02880C_Z_EXPORT_ENABLE(1),
S_02880C_Z_EXPORT_ENABLE(1), NULL);
+ if (rshader->output[i].name == TGSI_SEMANTIC_STENCIL)
+ r600_pipe_state_add_reg(rstate,
+ R_02880C_DB_SHADER_CONTROL,
+ S_02880C_STENCIL_EXPORT_ENABLE(1),
+ S_02880C_STENCIL_EXPORT_ENABLE(1), NULL);
}
exports_ps = 0;
More information about the mesa-commit
mailing list