From: Eric Anholt Date: Tue, 2 Dec 2014 20:58:27 +0000 (-0800) Subject: vc4: Allow dead code elimination of color reads. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dadc32ac8072cf78b405d1b54414e1f020b0de41;p=mesa.git vc4: Allow dead code elimination of color reads. This might happen if the blending functions are set up to not actually use the destination color/alpha, for example. --- diff --git a/src/gallium/drivers/vc4/vc4_qir.c b/src/gallium/drivers/vc4/vc4_qir.c index cd731bc5639..c43b9b60597 100644 --- a/src/gallium/drivers/vc4/vc4_qir.c +++ b/src/gallium/drivers/vc4/vc4_qir.c @@ -80,7 +80,7 @@ static const struct qir_op_info qir_op_info[] = { [QOP_TLB_STENCIL_SETUP] = { "tlb_stencil_setup", 0, 1, true }, [QOP_TLB_Z_WRITE] = { "tlb_z", 0, 1, true }, [QOP_TLB_COLOR_WRITE] = { "tlb_color", 0, 1, true }, - [QOP_TLB_COLOR_READ] = { "tlb_color_read", 1, 0, true }, + [QOP_TLB_COLOR_READ] = { "tlb_color_read", 1, 0 }, [QOP_VARY_ADD_C] = { "vary_add_c", 1, 1 }, [QOP_FRAG_X] = { "frag_x", 1, 0 },