From: Alyssa Rosenzweig Date: Fri, 5 Jul 2019 23:51:30 +0000 (-0700) Subject: panfrost/midgard: Use unsigned blend patch offset X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c9af7701d1be791752fafcbe19169851bcdf1336;p=mesa.git panfrost/midgard: Use unsigned blend patch offset We would like the offset field to be unsigned, letting 0 represent "no offset" and positive represent an offset. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c index 34b0678cf98..676a46e1236 100644 --- a/src/gallium/drivers/panfrost/midgard/midgard_compile.c +++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.c @@ -2551,7 +2551,7 @@ midgard_compile_shader_nir(nir_shader *nir, midgard_program *program, bool is_bl .stage = nir->info.stage, .is_blend = is_blend, - .blend_constant_offset = -1, + .blend_constant_offset = 0, .alpha_ref = program->alpha_ref };