mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
r600g: set ENABLE_KILL in the shader state in the new design
This commit is contained in:
parent
a852615946
commit
c622174f73
1 changed files with 8 additions and 0 deletions
|
|
@ -173,6 +173,14 @@ static void r600_pipe_shader_ps(struct pipe_context *ctx, struct r600_pipe_shade
|
|||
r600_pipe_state_add_reg(rstate, R600_GROUP_CONTEXT,
|
||||
R_0288CC_SQ_PGM_CF_OFFSET_PS,
|
||||
0x00000000, 0xFFFFFFFF, NULL);
|
||||
|
||||
if (rshader->uses_kill) {
|
||||
/* only set some bits here, the other bits are set in the dsa state */
|
||||
r600_pipe_state_add_reg(rstate, R600_GROUP_CONTEXT,
|
||||
R_02880C_DB_SHADER_CONTROL,
|
||||
S_02880C_KILL_ENABLE(1),
|
||||
S_02880C_KILL_ENABLE(1), NULL);
|
||||
}
|
||||
}
|
||||
|
||||
static int r600_pipe_shader(struct pipe_context *ctx, struct r600_pipe_shader *shader)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue