mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
broadcom/vc5: Implement workaround for GFXH-1431.
This should fix some blending errors, but doesn't impact any testcases in the CTS.
This commit is contained in:
parent
1bf466270d
commit
494da6c2dd
1 changed files with 5 additions and 1 deletions
|
|
@ -490,7 +490,11 @@ v3dX(emit_state)(struct pipe_context *pctx)
|
|||
}
|
||||
}
|
||||
|
||||
if (vc5->dirty & VC5_DIRTY_BLEND_COLOR) {
|
||||
/* GFXH-1431: On V3D 3.x, writing BLEND_CONFIG resets the constant
|
||||
* color.
|
||||
*/
|
||||
if (vc5->dirty & VC5_DIRTY_BLEND_COLOR ||
|
||||
(V3D_VERSION < 41 && (vc5->dirty & VC5_DIRTY_BLEND))) {
|
||||
cl_emit(&job->bcl, BLEND_CONSTANT_COLOUR, colour) {
|
||||
colour.red_f16 = (vc5->swap_color_rb ?
|
||||
vc5->blend_color.hf[2] :
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue