nir/lower_drawpixels: fix for lowered io

Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28463>
This commit is contained in:
Mike Blumenkrantz 2024-03-18 16:32:09 -04:00 committed by Marge Bot
parent c48f580a49
commit eb190a4e8b

View file

@ -231,6 +231,8 @@ lower_drawpixels_instr(nir_builder *b, nir_instr *instr, void *cb_data)
case nir_intrinsic_load_input: { case nir_intrinsic_load_input: {
if (nir_intrinsic_io_semantics(intr).location == VARYING_SLOT_TEX0) if (nir_intrinsic_io_semantics(intr).location == VARYING_SLOT_TEX0)
return lower_texcoord(b, state, intr); return lower_texcoord(b, state, intr);
if (nir_intrinsic_io_semantics(intr).location == VARYING_SLOT_COL0)
return lower_color(b, state, intr);
break; break;
} }
default: default: