i965/vec4: Add auxiliary func to build a writemask from a component size
authorEduardo Lima Mitev <elima@igalia.com>
Tue, 16 Jun 2015 18:53:28 +0000 (20:53 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Aug 2015 16:40:47 +0000 (09:40 -0700)
commita5a3287f7392356386aa305c791d94b6d5dde6cc
treef75a4950d0be256c7ba8409f5579681ebd4c5d17
parent6e58fc56a5a396020cd299db11895120ec3da520
i965/vec4: Add auxiliary func to build a writemask from a component size

New method brw_writemask_for_size() will return a writemask with the first
'size' components activated.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_reg.h