mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 06:00:10 +01:00
nir: Apply fragment color clamping to gl_FragData[] as well.
From the ARB_color_buffer_float spec:
35. Should the clamping of fragment shader output gl_FragData[n]
be controlled by the fragment color clamp.
RESOLVED: Since the destination of the FragData is a color
buffer, the fragment color clamp control should apply.
Fixes arb_color_buffer_float-mrt mixed on v3d.
Reviewed-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
03f6d26b62
commit
4b2ba18ff3
1 changed files with 2 additions and 7 deletions
|
|
@ -47,13 +47,8 @@ is_color_output(lower_state *state, nir_variable *out)
|
|||
}
|
||||
break;
|
||||
case MESA_SHADER_FRAGMENT:
|
||||
switch (out->data.location) {
|
||||
case FRAG_RESULT_COLOR:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
return (out->data.location == FRAG_RESULT_COLOR ||
|
||||
out->data.location >= FRAG_RESULT_DATA0);
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue