[Mesa-dev] [PATCH] format_utils: Use a more precise conversion when decreasing bits

Neil Roberts neil at linux.intel.com
Wed Jan 14 09:00:52 PST 2015


Neil Roberts <neil at linux.intel.com> writes:

> +      assert(src_bits + dst_bits <= sizeof(x) * 8);

Erm, actually I didn't realise there were places calling this with
dst_bits set to 32, so this isn't going to work. I probably should have
waited for Piglit to finish before sending the patch. Sorry.

- Neil


More information about the mesa-dev mailing list