From: Eric Anholt Date: Wed, 13 Aug 2014 17:43:26 +0000 (-0700) Subject: vc4: Drop incorrect attempt to incorrectly invert the primconvert hw_mask. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f663102585f9654200e531b42d5e8831ba7ed77f;p=mesa.git vc4: Drop incorrect attempt to incorrectly invert the primconvert hw_mask. The hw_mask is the set of primitives you actually support, so this attempt to provide the set of formats that's unsupported was wrong in two ways (it was intended to be '~' not '!'). However, we only call this code when prim isn't one of the actually supported hw_mask bits, so missing out on the memcpy didn't matter anyway. --- diff --git a/src/gallium/drivers/vc4/vc4_context.c b/src/gallium/drivers/vc4/vc4_context.c index 2fc571a26ad..1ffaab12765 100644 --- a/src/gallium/drivers/vc4/vc4_context.c +++ b/src/gallium/drivers/vc4/vc4_context.c @@ -303,7 +303,7 @@ vc4_context_create(struct pipe_screen *pscreen, void *priv) goto fail; vc4->primconvert = util_primconvert_create(pctx, - !((1 << PIPE_PRIM_QUADS) - 1)); + (1 << PIPE_PRIM_QUADS) - 1); if (!vc4->primconvert) goto fail;