mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 01:28:07 +02:00
r600: Change default behaviour for undefined COLOR0
d3d 9 needs COLOR0 to be 1.0 on all channels when undefined. 0.0 for the others is fine. GL behaviour is undefined. Signed-off-by: Axel Davy <axel.davy@ens.fr> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
f5d6ed5702
commit
7e05e4c388
1 changed files with 4 additions and 0 deletions
|
|
@ -2477,6 +2477,10 @@ void r600_update_ps_state(struct pipe_context *ctx, struct r600_pipe_shader *sha
|
|||
|
||||
tmp = S_028644_SEMANTIC(sid);
|
||||
|
||||
/* D3D 9 behaviour. GL is undefined */
|
||||
if (rshader->input[i].name == TGSI_SEMANTIC_COLOR && rshader->input[i].sid == 0)
|
||||
tmp |= S_028644_DEFAULT_VAL(3);
|
||||
|
||||
if (rshader->input[i].name == TGSI_SEMANTIC_POSITION ||
|
||||
rshader->input[i].interpolate == TGSI_INTERPOLATE_CONSTANT ||
|
||||
(rshader->input[i].interpolate == TGSI_INTERPOLATE_COLOR &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue