[Mesa-dev] [PATCH] r600g: fix blend setting with multiple render targets all with the same blend
Henri Verbeet
hverbeet at gmail.com
Thu Mar 31 04:07:06 PDT 2011
On 30 March 2011 23:43, Julian Adams <joolsa at gmail.com> wrote:
> ---
> src/gallium/drivers/r600/r600_state.c | 22 +++++++++++++---------
> 1 files changed, 13 insertions(+), 9 deletions(-)
>
Evergreen probably needs the same fix.
> + for (int i = 0, j = 0; i < 8; i++) {
> + /* state->rt entries > 0 only written if independent blending */
> + if (state->independent_blend_enable)
> + j = i;
Not sure about declaring "j" inside the for. I don't think it exactly
helps readability, but otoh it doesn't bother me a lot either.
More information about the mesa-dev
mailing list