[Mesa-dev] [PATCH 20/24] Revert "i965: Have brw_imm_vf4() take the vector components as integer values."

Emil Velikov emil.l.velikov at gmail.com
Tue Nov 3 08:08:55 PST 2015


On 3 November 2015 at 00:29, Matt Turner <mattst88 at gmail.com> wrote:
> This reverts commit bbf8239f92ecd79431dfa41402e1c85318e7267f.
>
> I didn't like that commit to begin with -- computing things at compile
> time is fine -- but for purposes of verifying that the resulting values
> are correct, looking up 0x00 and 0x30 in a table is a lot better than
> evaluating a recursive function.
>
> Anyway, by making brw_imm_vf4() take the actual 8-bit restricted floats
> directly (instead of only integral values that would be converted to
> restricted float), we can use this function as a replacement for the
> vector float src_reg/fs_reg constructors.
Yes please. If we have any floats we can easily convert them with the
existing brw_float_to_vf().

-Emil


More information about the mesa-dev mailing list